Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -40,7 +40,7 @@ app.secret_key = os.getenv("FLASK_SECRET")
|
|
40 |
|
41 |
# MongoDB connection
|
42 |
url = (os.getenv("MONGO_URI"))
|
43 |
-
client = MongoClient(
|
44 |
|
45 |
# Authentication decorator
|
46 |
def sudo_required(f):
|
|
|
40 |
|
41 |
# MongoDB connection
|
42 |
url = (os.getenv("MONGO_URI"))
|
43 |
+
client = MongoClient(url, server_api=ServerApi('1'))
|
44 |
|
45 |
# Authentication decorator
|
46 |
def sudo_required(f):
|