mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 21:08:03 +00:00
rm unnecessary round()
This commit is contained in:
@@ -31,7 +31,7 @@ def remove_user_data(db: Database, cutoff_date: int, vmail_basedir: Path):
|
|||||||
def main():
|
def main():
|
||||||
db = Database(sys.argv[2])
|
db = Database(sys.argv[2])
|
||||||
config = read_config(sys.argv[3])
|
config = read_config(sys.argv[3])
|
||||||
today = round(int(time.time()) // 86400)
|
today = int(time.time() // 86400)
|
||||||
|
|
||||||
cutoff_date = today - config.delete_accounts_after
|
cutoff_date = today - config.delete_accounts_after
|
||||||
remove_user_data(db, cutoff_date)
|
remove_user_data(db, cutoff_date)
|
||||||
|
|||||||
Reference in New Issue
Block a user