mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
remove datetime.utcnow()
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
from datetime import datetime
|
||||
from app.utils import utc_now
|
||||
|
||||
from .request_cache import RequestCache # noqa: F401 (unused import)
|
||||
|
||||
|
||||
def total_limit_cache_key(service_id):
|
||||
return "{}-{}-{}".format(
|
||||
str(service_id), datetime.utcnow().strftime("%Y-%m-%d"), "total-count"
|
||||
str(service_id), utc_now().strftime("%Y-%m-%d"), "total-count"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user