Added environment variables for reconnect

This commit is contained in:
Ozzie Isaacs
2022-03-16 16:57:18 +01:00
parent 57cd8160a0
commit 034ab73ccc
4 changed files with 16 additions and 21 deletions

View File

@@ -159,7 +159,7 @@ def shutdown():
# needed for docker applications, as changes on metadata.db from host are not visible to application
@admi.route("/reconnect", methods=['GET'])
def reconnect():
if cli.args.r:
if cli.reconnect_enable:
calibre_db.reconnect_db(config, ub.app_DB_path)
return json.dumps({})
else: