mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-14 23:07:49 -04:00
reformat up to latest version of black
This commit is contained in:
@@ -806,16 +806,12 @@ def _clear_templates_from_cache():
|
||||
# When we update-templates in the db, we need to make sure to delete them
|
||||
# from redis, otherwise the old versions will stick around forever.
|
||||
CACHE_KEYS = [
|
||||
"service-????????-????-????-????-????????????-templates",
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-version-*", # noqa
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-versions", # noqa
|
||||
]
|
||||
|
||||
|
||||
num_deleted = sum(
|
||||
redis_store.delete_by_pattern(pattern) for pattern in CACHE_KEYS
|
||||
)
|
||||
"service-????????-????-????-????-????????????-templates",
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-version-*", # noqa
|
||||
"service-????????-????-????-????-????????????-template-????????-????-????-????-????????????-versions", # noqa
|
||||
]
|
||||
|
||||
num_deleted = sum(redis_store.delete_by_pattern(pattern) for pattern in CACHE_KEYS)
|
||||
|
||||
|
||||
@notify_command(name="create-new-service")
|
||||
|
||||
Reference in New Issue
Block a user