From a321ebe765834d53c30ae947b4360ed7a6ee1802 Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 27 Sep 2023 17:00:13 +0200 Subject: [PATCH] fix wrong array index --- image_poster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_poster.py b/image_poster.py index 181a848..e9d9cc0 100755 --- a/image_poster.py +++ b/image_poster.py @@ -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)