Fixed an big related to week starting on Sunday
Removed line 82, starting with 'draw...' as it caused some errors. Choosing weekday="Sunday" should now work as expected. Special thanks to Nobuyoshi Sato for finding this bug.
This commit is contained in:
parent
ede448c7c1
commit
86cdc5630e
@ -79,7 +79,6 @@ def main():
|
|||||||
|
|
||||||
if (week_starts_on == "Sunday"):
|
if (week_starts_on == "Sunday"):
|
||||||
calendar.setfirstweekday(calendar.SUNDAY)
|
calendar.setfirstweekday(calendar.SUNDAY)
|
||||||
draw(weekplace, weeksun)
|
|
||||||
image.paste(weeksun, weekplace)
|
image.paste(weeksun, weekplace)
|
||||||
draw(weekdayssun[(time.strftime("%a"))], weekday)
|
draw(weekdayssun[(time.strftime("%a"))], weekday)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user