Set an update_check_id even if update checks are disabled

This commit is contained in:
Raphael Michel
2019-03-06 09:09:04 +01:00
parent c5499df0b4
commit f3ef00e3b7

View File

@@ -31,12 +31,13 @@ def run_update_check(sender, **kwargs):
@app.task
def update_check():
gs = GlobalSettingsObject()
if not gs.settings.update_check_perform:
return
if not gs.settings.update_check_id:
gs.settings.set('update_check_id', uuid.uuid4().hex)
if not gs.settings.update_check_perform:
return
if 'runserver' in sys.argv:
gs.settings.set('update_check_last', now())
gs.settings.set('update_check_result', {