Merge pull request #794 from GSA/fix-stats-time-usage

Returned months changed to calendar year
This commit is contained in:
Carlo Costino
2024-02-27 11:00:17 -05:00
committed by GitHub
3 changed files with 13 additions and 14 deletions

View File

@@ -3,11 +3,7 @@ from datetime import date, datetime, time, timedelta
def get_months_for_financial_year(year):
return [
month
for month in (
get_months_for_year(4, 13, year) + get_months_for_year(1, 4, year + 1)
)
if month < datetime.now()
month for month in (get_months_for_year(1, 13, year)) if month < datetime.now()
]