reformat up to latest version of black

This commit is contained in:
Kenneth Kehl
2024-04-01 15:12:33 -07:00
parent 87db56622e
commit ebdb78e52e
241 changed files with 334 additions and 92 deletions

View File

@@ -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")