mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
cleanup login.gov work
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user