Skip to content

Commit

Permalink
Merge branch 'bugfix/duration' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
janssensjelle committed Jan 12, 2025
2 parents bcbd3b4 + 58a29bc commit 0ca54b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def parse_duration_str(duration: str, baseline_ts: int = None) -> int | None:
units["d"] = units["day"] = units["days"] = units["h"] * 24
units["wk"] = units["w"] = units["week"] = units["weeks"] = units["d"] * 7
units["month"] = units["months"] = units["mo"] = units["d"] * 30
units["y"] = units["yr"] = units["years"] = units["years"] = units["d"] * 365
units["y"] = units["yr"] = units["year"] = units["years"] = units["d"] * 365
sum_seconds = 0

while duration:
Expand Down

0 comments on commit 0ca54b8

Please sign in to comment.