fix wrong array index

This commit is contained in:
fram3d 2023-09-27 17:00:13 +02:00
parent a70fd1369e
commit a321ebe765
Signed by: fram3d
GPG Key ID: 938920E709EEA32A

View File

@ -45,7 +45,7 @@ def drawPoster(events, bg, fg):
_, _, w, _ = draw.textbbox((0, 0), header, font=fontFacade)
draw.text(((W-w)/2, 120), header, font=fontFacade, fill=fg)
subheader = f"Plan za {MONTHS_SR[NEXT_MONTH.month]}"
subheader = f"Plan za {MONTHS_SR[NEXT_MONTH.month - 1]}"
_, _, w, _ = draw.textbbox((0, 0), subheader, font=fontIosevka)
draw.text(((W-w)/2, 240), subheader, font=fontIosevka, fill=fg)