Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jul 3, 2023
1 parent 1de0c9d commit bba29a5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ocw/lib/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit bba29a5

Please sign in to comment.