Cosmetics in form_validator.py
This commit is contained in:
parent
d05b2b09a8
commit
2ab4649113
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@ class FormData:
|
|||
|
||||
def get_start_and_finish_time(self, entry: typing.Dict) -> typing.Tuple:
|
||||
entry_start = time_string_to_minutes(entry["start_time"])/60
|
||||
if "finish_time" in list(entry.keys()):
|
||||
if "finish_time" in entry:
|
||||
entry_finish = time_string_to_minutes(entry["finish_time"])/60
|
||||
else:
|
||||
entry_finish = entry_start + entry['duration']/60
|
||||
|
|
|
|||
Loading…
Reference in a new issue