Use 4 decimal places when calculating hours for worked shift excel download

This commit is contained in:
Lance Edgar 2018-11-30 16:59:59 -06:00
parent 61fa77b752
commit e100e0ea72

View file

@ -190,7 +190,7 @@ class WorkedShiftsView(MasterView):
# add hours
if shift.punch_in and shift.punch_out:
if shift.punch_in <= shift.punch_out:
row['hours'] = hours_as_decimal(shift.punch_out - shift.punch_in)
row['hours'] = hours_as_decimal(shift.punch_out - shift.punch_in, places=4)
else:
row['hours'] = "??"
elif shift.punch_in or shift.punch_out: