Reload database on every call to v1/library/sync. This fixes an issue where side-loaded books appear in the sync response with no download urls.
This commit is contained in:
@ -784,9 +784,7 @@ def get_tasks_status():
|
||||
|
||||
@app.route("/reconnect")
|
||||
def reconnect():
|
||||
db.session.close()
|
||||
db.engine.dispose()
|
||||
db.setup_db(config)
|
||||
db.reconnect_db(config)
|
||||
return json.dumps({})
|
||||
|
||||
@web.route("/search", methods=["GET"])
|
||||
|
Reference in New Issue
Block a user