From 3f197695d98cf8c5ead6d0949f87b992a65c8c52 Mon Sep 17 00:00:00 2001 From: Christian Hagenest Date: Mon, 8 Jul 2024 17:24:01 +0200 Subject: [PATCH] rm unnecessary round() --- chatmaild/src/chatmaild/rm_accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatmaild/src/chatmaild/rm_accounts.py b/chatmaild/src/chatmaild/rm_accounts.py index bb018035..b28c7849 100644 --- a/chatmaild/src/chatmaild/rm_accounts.py +++ b/chatmaild/src/chatmaild/rm_accounts.py @@ -31,7 +31,7 @@ def remove_user_data(db: Database, cutoff_date: int, vmail_basedir: Path): def main(): db = Database(sys.argv[2]) config = read_config(sys.argv[3]) - today = round(int(time.time()) // 86400) + today = int(time.time() // 86400) cutoff_date = today - config.delete_accounts_after remove_user_data(db, cutoff_date)