Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
removed api version
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Mar 15, 2024
1 parent 9264e21 commit 5e8ce02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routers/lib/database.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pymongo import MongoClient
from pymongo.server_api import ServerApi

import os
import logging
Expand All @@ -10,7 +9,7 @@
MONGO_SERVER_URL = os.environ["MONGO_SERVER_URL"]
logging.info("[ Database (MongoDB) Initializing ] ...")

client = MongoClient(MONGO_SERVER_URL, server_api=ServerApi("1"))
client = MongoClient(MONGO_SERVER_URL)
db = client["wallstreetlocal"]
main = db["filers"]
stocks = db["stocks"]
Expand Down

0 comments on commit 5e8ce02

Please sign in to comment.