fix message ratio

This commit is contained in:
Kenneth Kehl
2026-01-21 09:22:03 -08:00
parent 244c982121
commit f5d8cf53be
2 changed files with 4 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ class CloudfoundryConfig:
self.s3_buckets = {bucket["name"]: bucket["credentials"] for bucket in buckets}
self._empty_bucket_credentials = {
"bucket": "",
"access_key_id": "", # nosec B105
"secret_access_key": "", # nosec B105
"access_key_id": "", # nosec B105
"secret_access_key": "", # nosec B105
"region": "",
}

View File

@@ -308,8 +308,8 @@ def dao_get_notification_count_for_service(*, service_id):
def dao_get_notification_count_for_service_message_ratio(service_id, current_year):
start_date = datetime(current_year, 6, 16)
end_date = datetime(current_year + 1, 6, 16)
start_date = datetime(current_year, 1, 1)
end_date = datetime(current_year + 1, 1, 1)
stmt1 = (
select(func.count())
.select_from(Notification)