Fix dashboard bug/usage page

This commit is contained in:
Andrew Shumway
2024-02-07 09:38:18 -07:00
parent e18054d2d8
commit 6999d72f76
5 changed files with 55 additions and 60 deletions

View File

@@ -11,7 +11,7 @@ def get_current_financial_year():
now = datetime.now(preferred_tz)
current_month = int(now.strftime("%-m"))
current_year = int(now.strftime("%Y"))
return current_year if current_month > 9 else current_year - 1
return current_year if current_month < 10 else current_year + 1
def is_less_than_days_ago(date_from_db, number_of_days):