From e100e0ea729bdc438a8f6618423a298d7dae78e6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 30 Nov 2018 16:59:59 -0600 Subject: [PATCH] Use 4 decimal places when calculating hours for worked shift excel download --- tailbone/views/shifts/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/shifts/core.py b/tailbone/views/shifts/core.py index 1bf4ebc6..10ceba0b 100644 --- a/tailbone/views/shifts/core.py +++ b/tailbone/views/shifts/core.py @@ -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: