Fixed nagging periodicals

This commit is contained in:
Jacob Henry 2019-03-02 22:16:25 -05:00
parent 235138da5b
commit 3c01e1782a
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class NotifyJobs(slack_util.Passive, JobNotifier):
await asyncio.sleep(delay)
# Now it is that time. Nag the jobs
job_commands.nag_jobs(self.get_day_of_week())
await job_commands.nag_jobs(self.get_day_of_week())
# Sleep for a bit to prevent double shots
await asyncio.sleep(10)
@ -100,7 +100,7 @@ class RemindJobs(slack_util.Passive, JobNotifier):
assigns: List[house_management.JobAssignment] = [a for a in assigns if self.is_job_valid(a)]
# Now, we want to nag each person. If we don't actually know who they are, so be it.
print("Reminding!")
print("Reminding people who haven't yet done their jobs.")
for a in assigns:
# Get the relevant slack ids
assignee_ids = await identifier.lookup_brother_userids(a.assignee)