From 365941ccc3793f6c66e28c85285e147fdf78e916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Wed, 19 Oct 2016 14:02:54 +0200 Subject: [PATCH] fix regression --- planning/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/utils.py b/planning/utils.py index 4872b35..d1db6e2 100644 --- a/planning/utils.py +++ b/planning/utils.py @@ -34,7 +34,7 @@ class Program: self.days = {} for talk in self.talks.all(): - duration = talk.estimated_duration() + duration = talk.estimated_duration assert(duration) dt1 = talk.start_date d1 = localtime(dt1).date() @@ -61,7 +61,7 @@ class Program: room = talk.room dt1 = talk.start_date d1 = localtime(dt1).date() - dt2 = talk.start_date + timedelta(minutes=talk.estimated_duration()) + dt2 = talk.start_date + timedelta(minutes=talk.estimated_duration) d2 = localtime(dt2).date() assert(d1 == d2) # this is a current limitation dt1 = self.days[d1]['timeslots'].index(dt1)