From ea287349360f6102369df3bdc8efb64a684a95ca Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt Date: Tue, 15 Sep 2020 16:38:14 -0400 Subject: Add exception to to return extended height of the show diff --git a/program/templatetags/timeslots.py b/program/templatetags/timeslots.py index 9b6712a..e8db9e8 100644 --- a/program/templatetags/timeslots.py +++ b/program/templatetags/timeslots.py @@ -8,7 +8,9 @@ register = template.Library() @register.simple_tag def height(start, end): if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0: - return '30' + if end.minute == 5: + return '30' + return '%d' % (((end - start).seconds / 60) + 25) else: return '%d' % ((end - start).seconds / 60) -- cgit v0.10.2