Skip to content

Commit

Permalink
Add app name
Browse files Browse the repository at this point in the history
  • Loading branch information
Steeven9 committed Oct 28, 2023
1 parent 2848aa9 commit e40d2b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ def populate() -> list[Tweet]:
@app.on_event("startup")
def startup_db_client():
app.mongodb_client = MongoClient(CONNECTION_STRING,
serverSelectionTimeoutMS=5)
serverSelectionTimeoutMS=5,
appname="blooop")
app.database = app.mongodb_client["schedule"]
app.mongodb_client.server_info()
log("Connected to the MongoDB database!")
Expand Down

0 comments on commit e40d2b1

Please sign in to comment.