mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-25 02:57:22 +00:00
Merge remote-tracking branch 'fix_reconnect'
# Conflicts: # cps/web.py
This commit is contained in:
commit
c78c63e1d5
@ -790,7 +790,9 @@ def get_tasks_status():
|
|||||||
|
|
||||||
@app.route("/reconnect")
|
@app.route("/reconnect")
|
||||||
def reconnect():
|
def reconnect():
|
||||||
db.reconnect_db(config)
|
db.session.close()
|
||||||
|
db.engine.dispose()
|
||||||
|
db.setup_db(config)
|
||||||
return json.dumps({})
|
return json.dumps({})
|
||||||
|
|
||||||
@web.route("/search", methods=["GET"])
|
@web.route("/search", methods=["GET"])
|
||||||
|
Loading…
Reference in New Issue
Block a user