mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
Flask requires a string
This commit is contained in:
parent
3399ead66f
commit
47a8173e39
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ def db_check_mysql():
|
||||||
|
|
||||||
@app.route("/db_check/mongo")
|
@app.route("/db_check/mongo")
|
||||||
def db_check_mongo():
|
def db_check_mongo():
|
||||||
return 1
|
return str(1)
|
||||||
try:
|
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://{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")
|
client = pymongo.MongoClient(f"mongodb://db-mongo.server.nyc1.consul")
|
||||||
|
|
Loading…
Add table
Reference in a new issue