Make tada

This commit is contained in:
Andrew Shumway
2025-04-14 13:36:14 -06:00
parent a9906bb826
commit eb81972d59
21 changed files with 58 additions and 56 deletions

View File

@@ -33,7 +33,7 @@ class DocumentDownloadClient:
"document": file_contents,
"is_csv": is_csv or False,
},
timeout=30
timeout=30,
)
response.raise_for_status()

View File

@@ -29,7 +29,7 @@ class PerformancePlatformClient:
self.performance_platform_url + payload["dataType"],
json=payload,
headers=headers,
timeout=30
timeout=30,
)
if resp.status_code == 200:

View File

@@ -35,7 +35,7 @@ def cronitor(task_name):
params={
"host": current_app.config["API_HOST_NAME"],
},
timeout=30
timeout=30,
)
resp.raise_for_status()
except requests.RequestException as e:

View File

@@ -1,4 +1,4 @@
from flask import Blueprint, jsonify, request, make_response
from flask import Blueprint, jsonify, make_response, request
from sqlalchemy import text
from app import db, version
@@ -27,11 +27,13 @@ def show_status():
@status.route("/_status/live-service-and-organization-counts")
def live_service_and_organization_counts():
response = make_response(jsonify(
response = make_response(
jsonify(
organizations=dao_count_organizations_with_live_services(),
services=dao_count_live_services(),
),
200,)
200,
)
response.headers["Content-Type"] = "application/json"
return response