From ba27da8a2f40d9611b622f77291d975e0e49f2b3 Mon Sep 17 00:00:00 2001 From: Ace Date: Wed, 18 Dec 2019 02:16:14 +0100 Subject: [PATCH] Clear bottom section image if full length agenda --- modules/inkycal_agenda.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/inkycal_agenda.py b/modules/inkycal_agenda.py index 40c2533..f1d227c 100644 --- a/modules/inkycal_agenda.py +++ b/modules/inkycal_agenda.py @@ -48,6 +48,8 @@ line_pos = [(border_left, int(top_section_height + border_top + line * line_heig def main(): try: clear_image('middle_section') + if not bottom_section: + clear_image('bottom_section') print('Agenda module: Generating image...', end = '') now = arrow.now(get_tz())