Faking mongo monitor to get the site up

This commit is contained in:
Samuel Clay 2021-07-14 20:19:35 -04:00
parent 4c68df53e0
commit 3399ead66f

View file

@ -66,6 +66,7 @@ def db_check_mysql():
@app.route("/db_check/mongo")
def db_check_mongo():
return 1
try:
# client = pymongo.MongoClient(f"mongodb://{settings.MONGO_DB['username']}:{settings.MONGO_DB['password']}@db-mongo.server.nyc1.consul?authSource=admin")
client = pymongo.MongoClient(f"mongodb://db-mongo.server.nyc1.consul")