Don’t show future financal years on org page

There’s no useful information in the page for the future financial year
because there’s no way for any of the services to have yet used
anything.

Changes this matches the change we made to the service usage page in
https://github.com/alphagov/notifications-admin/pull/3439/files
This commit is contained in:
Chris Hill-Scott
2021-03-10 15:39:06 +00:00
parent 19488aad97
commit 79bbd0fd98
2 changed files with 5 additions and 5 deletions

View File

@@ -148,8 +148,8 @@ def organisation_dashboard(org_id):
services=services,
years=get_tuples_of_financial_years(
partial(url_for, '.organisation_dashboard', org_id=current_organisation.id),
start=current_financial_year - 1,
end=current_financial_year + 1,
start=current_financial_year - 2,
end=current_financial_year,
),
selected_year=year,
search_form=SearchByNameForm() if len(services) > 7 else None,