Skip to content

Commit

Permalink
Merge pull request #78 from IMMM-SFA/hotfix/epiweek
Browse files Browse the repository at this point in the history
fix epiweek bug
  • Loading branch information
thurber authored Jan 24, 2022
2 parents be06f30 + 5783f18 commit 84952cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mosartwmpy/utilities/epiweek.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_epiweek_from_datetime(dt: datetime) -> int:
week = (dt_ordinal - year_start_ordinal) // 7
elif week >= 52:
year_start_ordinal = _get_year_start_ordinal(year + 1)
if date_ordinal > year_start_ordinal:
if dt_ordinal > year_start_ordinal:
year = year + 1
week = 0
week = week + 1
Expand Down

0 comments on commit 84952cd

Please sign in to comment.