Revert handling of issues that were due to outdated database schema

pull/299/head
ElementalAlchemist 3 years ago
parent 30a0792c3a
commit 5a7f35f765

@ -178,11 +178,11 @@ def get_row(ident):
]
if response['event_start'] is not None:
start = response['event_start']
if 'thumbnail_template' not in response or response['thumbnail_template'] is None:
if response['thumbnail_template'] is None:
pst_hour = (start.hour - 8) % 24
shift = int(pst_hour / 6)
response['thumbnail_template'] = DEFAULT_TEMPLATES[shift]
if 'thumbnail_time' not in response or response['thumbnail_time'] is None:
if 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

Loading…
Cancel
Save