From ef53440b9581d8867f52c5527d43a2fc4ac7a155 Mon Sep 17 00:00:00 2001 From: ennucore Date: Mon, 25 Jul 2022 11:33:49 +0300 Subject: [PATCH] Fix bug with repeating meetings --- community.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community.py b/community.py index 4b16c26..ebe3490 100644 --- a/community.py +++ b/community.py @@ -105,7 +105,7 @@ class Community: """ return any( {l, m} == {user_id_1, user_id_2} and r > date.today() - timedelta(days=42) - for l, m, r in self.scheduled_meetings) + for l, m, r in self.scheduled_meetings + self.archived_meetings) def schedule_meetings(self): random.shuffle(self.pool) # It's called RandomTea for a reason