Skip to content

Commit

Permalink
Update trema_database.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope authored Jul 11, 2023
1 parent b2315cf commit 31e08dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trema_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ def set_welcome_msg(self, welcome_id, welcome_msg):
mongo_user = os.getenv('MONGO_USER')
mongo_password = os.getenv('MONGO_PASSWORD')
mongo_host = os.getenv('MONGO_HOST')
mongo_port = os.getenv('MONGO_PORT')
connection_string = f"mongodb://{mongo_user}:{mongo_password}@{mongo_host}:{mongo_port}"
connection_string = f"mongodb://{mongo_user}:{mongo_password}@{mongo_host}:27017"
database = _TremaDatabase("trema", connection_string)

def get_trema_database():
Expand Down

0 comments on commit 31e08dc

Please sign in to comment.