aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine/addons
diff options
context:
space:
mode:
Diffstat (limited to 'warmachine/addons')
-rw-r--r--warmachine/addons/standup.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py
index ef873d3..c8e4083 100644
--- a/warmachine/addons/standup.py
+++ b/warmachine/addons/standup.py
@@ -346,16 +346,16 @@ class StandUpPlugin(WarMachinePlugin):
346 next_standup = datetime(now.year, now.month, now.day, 346 next_standup = datetime(now.year, now.month, now.day,
347 standup_hour, standup_minute) 347 standup_hour, standup_minute)
348 348
349 # If we've already past the time for today, schedule it for that time on the 349 # If we've already past the time for today, schedule it for that time
350 # next weekday 350 # on the next weekday
351 if now > next_standup: 351 if now > next_standup or now.isoweekday() > 4:
352 # if it's friday, wait 72 hours 352 # if it's friday(5), wait 72 hours
353 if now.isoweekday() == 5: 353 if now.isoweekday() == 5:
354 hours = 72 354 hours = 72
355 # if it's saturday, wait 48 355 # if it's saturday(6), wait 48
356 elif now.isoweekday() == 6: 356 elif now.isoweekday() == 6:
357 hours = 48 357 hours = 48
358 # if it's sunday-thur wait 24 358 # if it's sunday(7)-thur(4) wait 24
359 else: 359 else:
360 hours = 24 360 hours = 24
361 361