cleanup login.gov work

This commit is contained in:
Kenneth Kehl
2023-10-19 12:22:36 -07:00
parent 86ac810fff
commit 1d1e7747d0
5 changed files with 821 additions and 634 deletions

View File

@@ -1,10 +1,10 @@
from datetime import datetime
from notifications_utils.clients.redis import daily_total_cache_key
from app.extensions import redis_client
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
# from notifications_utils.clients.redis import daily_total_cache_key
class ServiceAPIClient(NotifyAdminAPIClient):
@cache.delete("user-{user_id}")
@@ -499,9 +499,11 @@ class ServiceAPIClient(NotifyAdminAPIClient):
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
# TODO FIX
# count = redis_client.get(daily_total_cache_key()) or 0
return int(count)
# return int(count)
return 0
service_api_client = ServiceAPIClient()