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