forked from CGM_Public/pretix_original
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
|
@app.task
|
||||||
def update_check():
|
def update_check():
|
||||||
gs = GlobalSettingsObject()
|
gs = GlobalSettingsObject()
|
||||||
if not gs.settings.update_check_perform:
|
|
||||||
return
|
|
||||||
|
|
||||||
if not gs.settings.update_check_id:
|
if not gs.settings.update_check_id:
|
||||||
gs.settings.set('update_check_id', uuid.uuid4().hex)
|
gs.settings.set('update_check_id', uuid.uuid4().hex)
|
||||||
|
|
||||||
|
if not gs.settings.update_check_perform:
|
||||||
|
return
|
||||||
|
|
||||||
if 'runserver' in sys.argv:
|
if 'runserver' in sys.argv:
|
||||||
gs.settings.set('update_check_last', now())
|
gs.settings.set('update_check_last', now())
|
||||||
gs.settings.set('update_check_result', {
|
gs.settings.set('update_check_result', {
|
||||||
|
|||||||
Reference in New Issue
Block a user