From e041ea433f98b8dc24489f99c5bf69b1f0ba216a Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Tue, 14 Oct 2025 13:32:11 -0700 Subject: [PATCH] f-strings instead of .format() --- app/main/views/organizations.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/main/views/organizations.py b/app/main/views/organizations.py index 525fe72a9..e39972abd 100644 --- a/app/main/views/organizations.py +++ b/app/main/views/organizations.py @@ -176,13 +176,8 @@ def download_organization_usage_report(org_id): { "Content-Type": "text/csv; charset=utf-8", "Content-Disposition": ( - "inline;" - 'filename="{} organization usage report for year {}' - ' - generated on {}.csv"'.format( - safe_org_name, - selected_year, - datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%fZ"), - ) + f'inline;filename="{safe_org_name} organization usage report for year {selected_year}' + f' - generated on {datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%fZ")}.csv"' ), }, )