countdown: add TODO to improve cheap workaround

This commit is contained in:
Brian S. Stephan 2017-02-23 09:03:17 -06:00
parent 57903b4728
commit 5b79cea3c6
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class Countdown(Plugin):
def reminder_thread(self):
"""After IRC is started up, begin sending reminders."""
# TODO: figure out if we need this sleep, which exists so we don't send reminders while still connecting to IRC
time.sleep(30)
while self.send_reminders:
reminders = CountdownItem.objects.filter(is_reminder=True, sent_reminder=False, at_time__lte=timezone.now())