Reset bas files before site update when changing autodownload status in sidebar

This commit is contained in:
shortcutme 2016-11-07 22:59:58 +01:00
parent f84c394e09
commit 55417a1103

View file

@ -580,7 +580,8 @@ class UiWebsocketPlugin(object):
if "ADMIN" not in permissions: if "ADMIN" not in permissions:
return self.response(to, "You don't have permission to run this command") return self.response(to, "You don't have permission to run this command")
self.site.settings["autodownloadoptional"] = bool(owned) self.site.settings["autodownloadoptional"] = bool(owned)
self.site.update(check_files=True) self.site.bad_files = {}
gevent.spawn(self.site.update, check_files=True)
self.site.worker_manager.removeGoodFileTasks() self.site.worker_manager.removeGoodFileTasks()
def actionDbReload(self, to): def actionDbReload(self, to):