Browse Source

Fix bug with repeating meetings

master
Lev 2 years ago
parent
commit
ef53440b95
  1. 2
      community.py

2
community.py

@ -105,7 +105,7 @@ class Community:
""" """
return any( return any(
{l, m} == {user_id_1, user_id_2} and r > date.today() - timedelta(days=42) {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): def schedule_meetings(self):
random.shuffle(self.pool) # It's called RandomTea for a reason random.shuffle(self.pool) # It's called RandomTea for a reason

Loading…
Cancel
Save