Skip to content

Commit

Permalink
Set last_cleanup_time properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Aug 18, 2024
1 parent 7bbcb47 commit 4939574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def cleanup():
deleted_count += 1

app.runtime_info["num_expired_signups"] += deleted_count
app.runtime_info["last_cleanup_time"] = time.time()
msg = f"cleanup: Deleted {deleted_count} expired signup(s)."
logger.info(msg)
return {"status": "ok", "message": msg}

0 comments on commit 4939574

Please sign in to comment.