Requested changes in PR review

This commit is contained in:
Andrew Shumway
2023-06-01 15:40:50 -06:00
parent c97b412afe
commit a1484c62bb
3 changed files with 2 additions and 4 deletions

View File

@@ -530,14 +530,12 @@ class ServiceAPIClient(NotifyAdminAPIClient):
def get_notification_count(self, service_id):
# if cache is not set, or not enabled, return 0
count = redis_client.get(daily_limit_cache_key(service_id)) or 0
return int(count)
def get_global_notification_count(self):
# if cache is not set, or not enabled, return 0
count = redis_client.get(daily_total_cache_key()) or 0
return int(count)