mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 19:09:22 +02:00
lint
This commit is contained in:
parent
d1bac52aa6
commit
bd35244396
1 changed files with 2 additions and 3 deletions
|
@ -376,12 +376,11 @@ def analytics(request):
|
|||
approval_time=F("approved_domain__created_at") - F("submission_date")
|
||||
).aggregate(Avg("approval_time"))["approval_time__avg"]
|
||||
# Format the timedelta to display only days
|
||||
|
||||
|
||||
|
||||
if avg_approval_time is not None:
|
||||
avg_approval_time = f"{avg_approval_time.days} days"
|
||||
else:
|
||||
avg_approval_time="No approvals to use"
|
||||
avg_approval_time = "No approvals to use"
|
||||
# The start and end dates are passed as url params
|
||||
start_date = request.GET.get("start_date", "")
|
||||
end_date = request.GET.get("end_date", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue