Default to rdp template for RDP thumbnails

pull/313/head
Mike Lang 2 years ago
parent a3e16a2686
commit c36976dcca

@ -181,6 +181,10 @@ def get_row(ident):
if response['event_start'] is not None:
start = response['event_start']
if response['thumbnail_template'] is None:
# RDPs default to the RDP template. Others use the current shift.
if response['category'] == "RDP":
response['thumbnail_template'] = "rdp"
else:
pst_hour = (start.hour - 8) % 24
shift = int(pst_hour / 6)
response['thumbnail_template'] = DEFAULT_TEMPLATES[shift]

Loading…
Cancel
Save