1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-15 07:37:40 +00:00

Update Updater

Bugfix author in opds-feed
This commit is contained in:
Ozzieisaacs
2018-11-01 13:44:00 +01:00
parent c1818e8f36
commit cc7dcfb35a
3 changed files with 13 additions and 14 deletions

7
cps/helper.py Executable file → Normal file
View File

@@ -399,15 +399,12 @@ class Updater(threading.Thread):
z.extractall(tmp_dir)
self.status = 4
self.update_source(os.path.join(tmp_dir, os.path.splitext(fname)[0]), ub.config.get_main_dir)
self.status = 5
db.session.close()
db.engine.dispose()
ub.session.close()
ub.engine.dispose()
self.status = 6
time.sleep(2)
server.Server.setRestartTyp(True)
server.Server.stopServer()
self.status = 7
time.sleep(2)
except requests.exceptions.HTTPError as ex:
logging.getLogger('cps.web').info( u'HTTP Error' + ' ' + str(ex))
self.status = 8