Flask requires a string

This commit is contained in:
Samuel Clay 2021-07-14 20:20:27 -04:00
parent 3399ead66f
commit 47a8173e39

View file

@ -66,7 +66,7 @@ def db_check_mysql():
@app.route("/db_check/mongo")
def db_check_mongo():
return 1
return str(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")