diff --git a/app/views.py b/app/views.py index 46295dd..b202841 100644 --- a/app/views.py +++ b/app/views.py @@ -194,7 +194,7 @@ def report(): name_dict[swipe.uuid] = [] name_list = name_dict[swipe.uuid] - name_list.append(swipe.time) + name_list.append(est) @@ -208,7 +208,7 @@ def report(): for name_obj in name_query: name = f'{name_obj.first_name} {name_obj.last_name}' names.append(name) - result += f'{name}' + result += f'{name}' result += '' @@ -238,7 +238,7 @@ def report(): total_hours += dt.seconds / 60 / 60 if name not in totals: totals[name] = 0.0 - totals[name] += total_hours + totals[name] += total_hours # result += f'{day} | {name}: {total_hours:0.2f}
' column[name] = f'{total_hours:0.2f}' if date.weekday() < last_weekday: