Fixed nagging periodicals
This commit is contained in:
parent
235138da5b
commit
3c01e1782a
|
|
@ -77,7 +77,7 @@ class NotifyJobs(slack_util.Passive, JobNotifier):
|
||||||
await asyncio.sleep(delay)
|
await asyncio.sleep(delay)
|
||||||
|
|
||||||
# Now it is that time. Nag the jobs
|
# 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
|
# Sleep for a bit to prevent double shots
|
||||||
await asyncio.sleep(10)
|
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)]
|
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.
|
# 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:
|
for a in assigns:
|
||||||
# Get the relevant slack ids
|
# Get the relevant slack ids
|
||||||
assignee_ids = await identifier.lookup_brother_userids(a.assignee)
|
assignee_ids = await identifier.lookup_brother_userids(a.assignee)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue