From 4939574d9f57fe94ccc4f72d49f4297340824d95 Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Sun, 18 Aug 2024 05:17:57 +0000 Subject: [PATCH] Set last_cleanup_time properly --- src/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.py b/src/main.py index ecb9ddc..5e76fe4 100644 --- a/src/main.py +++ b/src/main.py @@ -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}