Add Pause tasks which counts as a break.
This commit is contained in:
parent
f38fed4f18
commit
046c6fb742
1
data.py
1
data.py
@ -179,6 +179,7 @@ class Report:
|
||||
if i < len(tmp) - 1:
|
||||
end_time = tmp[i+1][1]
|
||||
duration = end_time - start_time
|
||||
if task != "Pause":
|
||||
dsum += duration
|
||||
dhours, rem = divmod(duration.seconds, 3600)
|
||||
dmins, _ = divmod(rem, 60)
|
||||
|
Loading…
Reference in New Issue
Block a user