From 1b61d07bcbb11ec437bb9879a93af706cfdc9726 Mon Sep 17 00:00:00 2001 From: Nicolas Mounet Date: Tue, 12 Jan 2021 19:23:12 +0100 Subject: [PATCH] Fixing bug onf start and finish time when there is no breaks (calculator) --- cara/apps/calculator/model_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/apps/calculator/model_generator.py b/cara/apps/calculator/model_generator.py index b5c95ca7..958f5310 100644 --- a/cara/apps/calculator/model_generator.py +++ b/cara/apps/calculator/model_generator.py @@ -350,7 +350,7 @@ class FormData: """ if not breaks: # If there are no breaks, the interval is the start and end. - return models.SpecificInterval(((start, finish),)) + return models.SpecificInterval(((start/60, finish/60),)) # Order the breaks by their start-time, and ensure that they are monotonic # and that the start of one break happens after the end of another.