Fixed timekeeping + header color
pretty sure it was the indent, not the est but whatever, I did both
This commit is contained in:
parent
5e304826ca
commit
adced1e3c1
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ def report():
|
||||||
name_dict[swipe.uuid] = []
|
name_dict[swipe.uuid] = []
|
||||||
name_list = 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:
|
for name_obj in name_query:
|
||||||
name = f'{name_obj.first_name} {name_obj.last_name}'
|
name = f'{name_obj.first_name} {name_obj.last_name}'
|
||||||
names.append(name)
|
names.append(name)
|
||||||
result += f'<th style="width: 100px; position: sticky; top: 0;">{name}</th>'
|
result += f'<th style="width: 100px; position: sticky; top: 0; background: #242424;">{name}</th>'
|
||||||
result += '</tr></thead>'
|
result += '</tr></thead>'
|
||||||
|
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ def report():
|
||||||
total_hours += dt.seconds / 60 / 60
|
total_hours += dt.seconds / 60 / 60
|
||||||
if name not in totals:
|
if name not in totals:
|
||||||
totals[name] = 0.0
|
totals[name] = 0.0
|
||||||
totals[name] += total_hours
|
totals[name] += total_hours
|
||||||
# result += f'{day} | {name}: {total_hours:0.2f}<br>'
|
# result += f'{day} | {name}: {total_hours:0.2f}<br>'
|
||||||
column[name] = f'{total_hours:0.2f}'
|
column[name] = f'{total_hours:0.2f}'
|
||||||
if date.weekday() < last_weekday:
|
if date.weekday() < last_weekday:
|
||||||
|
|
Loading…
Reference in a new issue