summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/templatetags/timeslots.py4
1 files changed, 3 insertions, 1 deletions
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)