Removed remaining 288s, replaced with nearest(ind[act]/3600.0) == 0

nearest-quarter-hour
Trey Blancher 1 year ago
parent 28a44469a6
commit 03d28465eb
  1. 2
      timetracker.py

@ -86,7 +86,7 @@ table = "{a:<50} {f:>10}"
for act in sorted(ind.keys()):
#minutes = "{:d}min".format(int(ind[act]%3600/60))
#hrs = "{:d}hrs".format(int(nearest(ind[act]/3600)))
if ind[act] <= 288:
if nearest(ind[act]/3600.0) == 0:
fhrs = "{:.2f}hrs".format(0.08)
else:
fhrs = "{:.2f}hrs".format(nearest(ind[act]/3600.00))

Loading…
Cancel
Save