From bba29a5b0af6812cffceaa2f24214ecaf3d6a83d Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Mon, 3 Jul 2023 14:02:06 +0200 Subject: [PATCH] fix --- ocw/lib/db.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ocw/lib/db.py b/ocw/lib/db.py index 91ebffb3..9e987335 100644 --- a/ocw/lib/db.py +++ b/ocw/lib/db.py @@ -202,17 +202,14 @@ def auto_delete_instances() -> None: def is_updating(): - global RUNNING return RUNNING def last_update(): - global LAST_UPDATE return LAST_UPDATE if LAST_UPDATE is not None else '' def start_update(): - global RUNNING if not RUNNING: getScheduler().get_job('update_db').reschedule(trigger='date', run_date=datetime.now(timezone.utc))