From 1c43a6b7bc527db275081e22824616317c0026ca Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 13 Feb 2024 12:28:16 +0200 Subject: [PATCH] do this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/5927555#context --- files/helpers/cron.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/helpers/cron.py b/files/helpers/cron.py index 5cf87d0b4..78f4c06e0 100644 --- a/files/helpers/cron.py +++ b/files/helpers/cron.py @@ -362,3 +362,8 @@ def _expire_blocks_mutes_exiles(): for exile in exiles: send_repeatable_notification(exile.user_id, f"Your exile from /h/{exile.hole} has passed 1 month and expired!") g.db.delete(exile) + + holeblocks = g.db.query(HoleBlock).filter(HoleBlock.created_utc < one_month_ago) + for holeblock in holeblocks: + send_repeatable_notification(holeblock.user_id, f"Your block of /h/{holeblock.hole} has passed 1 month and expired!") + g.db.delete(holeblock)