Clear bottom section image if full length agenda

This commit is contained in:
Ace 2019-12-18 02:16:14 +01:00 committed by GitHub
parent ce4c4f98e0
commit ba27da8a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,8 @@ line_pos = [(border_left, int(top_section_height + border_top + line * line_heig
def main(): def main():
try: try:
clear_image('middle_section') clear_image('middle_section')
if not bottom_section:
clear_image('bottom_section')
print('Agenda module: Generating image...', end = '') print('Agenda module: Generating image...', end = '')
now = arrow.now(get_tz()) now = arrow.now(get_tz())