mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 00:06:16 -04:00
cleanup
This commit is contained in:
@@ -140,11 +140,7 @@ def send_sms_to_provider(notification):
|
|||||||
|
|
||||||
cache_key = total_limit_cache_key(service.id)
|
cache_key = total_limit_cache_key(service.id)
|
||||||
redis_store.incr(cache_key)
|
redis_store.incr(cache_key)
|
||||||
current_app.logger.info(
|
|
||||||
hilite(
|
|
||||||
f"message count for service {n.service_id} now {redis_store.get(cache_key)}"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return message_id
|
return message_id
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ def check_service_over_total_message_limit(key_type, service):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
raise TotalRequestsError(service.total_message_limit)
|
raise TotalRequestsError(service.total_message_limit)
|
||||||
|
|
||||||
return int(service_stats)
|
return int(service_stats)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user