Adding the new fields for template stats.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-08-21 11:09:50 -04:00
parent 7a3a216444
commit 5d5ff72ca2
2 changed files with 16 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ def get_template_statistics_for_service_by_day(service_id):
try:
whole_days = int(whole_days)
except ValueError:
error = "{} is not an integer".format(whole_days)
error = f"{whole_days} is not an integer"
message = {"whole_days": [error]}
raise InvalidRequest(message, status_code=400)