diff --git a/tailbone/views/timesheet.py b/tailbone/views/timesheet.py index 911c5a40..ecd2be24 100644 --- a/tailbone/views/timesheet.py +++ b/tailbone/views/timesheet.py @@ -81,13 +81,13 @@ class TimeSheetView(View): else: break - empday['hours_display'] = '' + empday['hours_display'] = '0' if empday['hours']: minutes = (empday['hours'].days * 1440) + (empday['hours'].seconds / 60) empday['hours_display'] = '{}:{:02d}'.format(minutes // 60, minutes % 60) employee.weekdays.append(empday) - employee.hours_display = '' + employee.hours_display = '0' if employee.hours: minutes = (employee.hours.days * 1440) + (employee.hours.seconds / 60) employee.hours_display = '{}:{:02d}'.format(minutes // 60, minutes % 60)