|
|
@ -181,9 +181,13 @@ def get_row(ident):
|
|
|
|
if response['event_start'] is not None:
|
|
|
|
if response['event_start'] is not None:
|
|
|
|
start = response['event_start']
|
|
|
|
start = response['event_start']
|
|
|
|
if response['thumbnail_template'] is None:
|
|
|
|
if response['thumbnail_template'] is None:
|
|
|
|
pst_hour = (start.hour - 8) % 24
|
|
|
|
# RDPs default to the RDP template. Others use the current shift.
|
|
|
|
shift = int(pst_hour / 6)
|
|
|
|
if response['category'] == "RDP":
|
|
|
|
response['thumbnail_template'] = DEFAULT_TEMPLATES[shift]
|
|
|
|
response['thumbnail_template'] = "rdp"
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
pst_hour = (start.hour - 8) % 24
|
|
|
|
|
|
|
|
shift = int(pst_hour / 6)
|
|
|
|
|
|
|
|
response['thumbnail_template'] = DEFAULT_TEMPLATES[shift]
|
|
|
|
if response['thumbnail_time'] is None:
|
|
|
|
if response['thumbnail_time'] is None:
|
|
|
|
if response['event_end'] is not None:
|
|
|
|
if response['event_end'] is not None:
|
|
|
|
# take full duration, and add half to start to get halfway
|
|
|
|
# take full duration, and add half to start to get halfway
|
|
|
|