From 3580d954fd81465ddfea03ccf98c5e0e839ee843 Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Sun, 9 Oct 2022 14:50:03 -0500 Subject: [PATCH] Fix loading the editor --- thrimshim/thrimshim/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thrimshim/thrimshim/main.py b/thrimshim/thrimshim/main.py index ccdc2f8..cdc468e 100644 --- a/thrimshim/thrimshim/main.py +++ b/thrimshim/thrimshim/main.py @@ -178,9 +178,9 @@ def get_row(ident): ] if response['event_start'] is not None: start = response['event_start'] - if response['thumbnail_template'] is None: + if 'thumbnail_template' not in response or response['thumbnail_template'] is None: response['thumbnail_template'] = DEFAULT_TEMPLATES[int(start.hour / 6)] - if response['thumbnail_time'] is None: + if 'thumbnail_time' not in response or response['thumbnail_time'] is None: if response['event_end'] is not None: # take full duration, and add half to start to get halfway duration = response['event_end'] - start