Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timoballard committed Oct 31, 2023
1 parent f557426 commit a697768
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/audit/file_downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from django.conf import settings
from django.http import Http404
from django.shortcuts import get_object_or_404

from boto3 import client as boto3_client
from botocore.client import ClientError, Config
Expand All @@ -17,7 +16,9 @@ def get_filename(sac, file_type):
file_obj = SingleAuditReportFile.objects.filter(sac=sac).latest("date_created")
return f"singleauditreport/{file_obj.filename}"
else:
file_obj = ExcelFile.objects.filter(sac=sac, form_section=file_type).latest("date_created")
file_obj = ExcelFile.objects.filter(sac=sac, form_section=file_type).latest(
"date_created"
)
return f"excel/{file_obj.filename}"


Expand Down

0 comments on commit a697768

Please sign in to comment.