mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Set an update_check_id even if update checks are disabled
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user