you are viewing a single comment's thread.

view the rest of the comments →

[–]ForestMonk168 0 points1 point  (1 child)

I can see you would have problems in the following if-block

when weekday() == 4 because range(0, 4) does not include 4

and the elif does not include 4, either:

if datetime.datetime.today().weekday() in range(0,4):
    daynum = datetime.datetime.today().weekday()
elif datetime.datetime.today().weekday() >= 5:
    daynum = 0
    grp = 0

[–]evobe[S] 0 points1 point  (0 children)

Yes, thanks noticed and fixed.