Skip to content

Commit

Permalink
Merge pull request #8 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
env changed
  • Loading branch information
adnankattekaden authored Nov 15, 2023
2 parents 3a49d6a + 1876b1a commit 7dd25d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions models/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

class DBConnection:
def __init__(self, pool_size=5, max_overflow=10):
db_host = decouple_config("DB_HOST")
db_user = decouple_config("DB_USER")
db_pass = quote_plus(decouple_config("DB_PASS"))
db_name = decouple_config("DB_NAME")
db_port = decouple_config("DB_PORT")
db_host = decouple_config("DATABASE_HOST")
db_user = decouple_config("DATABASE_USER")
db_pass = quote_plus(decouple_config("DATABASE_PASSWORD"))
db_name = decouple_config("DATABASE_NAME")
db_port = decouple_config("DATABASE_PORT")
self.db_engine = create_engine(
f'mysql+pymysql://{db_user}:{db_pass}@{db_host}:{db_port}/{db_name}',
poolclass=QueuePool,
Expand Down

0 comments on commit 7dd25d3

Please sign in to comment.