Skip to content

Commit

Permalink
avoid inluding durations for running locks
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
trev-dev committed Nov 5, 2022
1 parent 521b314 commit 7550a49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/billable.nim
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ func totalHours(t: Table): float =
proc parseDuration(e: RawTimeEntry): Duration =
let f = initTimeFormat "yyyyMMdd'T'HHmmss'Z'"
let stime = e.start.parse f
let etime = e.`end`.parse f
var etime = stime

if e.`end` != "":
etime = e.`end`.parse f

etime - stime

proc addOrUpdateRow(
Expand Down

0 comments on commit 7550a49

Please sign in to comment.