Removed references to 288s, replaced with nearest(delta/3600.00) == 0

nearest-quarter-hour
Trey Blancher 1 year ago
parent 30fe02f133
commit 28a44469a6
  1. 3
      timetracker.py

@ -1,7 +1,6 @@
#!/usr/bin/env python3
import fileinput
import math
import re
import sys
import time
@ -74,7 +73,7 @@ for act in sorted(start.keys()):
ind[act] = delta
gtot += delta
if delta <= 288:
if nearest(delta/3600.00) == 0:
gtoth += 0.08
else:
gtoth += nearest(delta/3600.00)

Loading…
Cancel
Save