Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actionsa912c313b8fe
diff --git a/wger/manager/helpers.py b/wger/manager/helpers.py
index 999ffea76..76cd3970f 100644
--- a/wger/manager/helpers.py
+++ b/wger/manager/helpers.py
@@ -186,7 +186,9 @@ def reset_routine_cache(instance: Routine, structure: bool = True):
"""Resets all caches related to a routine"""
cache.delete(CacheKeyMapper.routine_date_sequence_key(instance.id))
- cache.delete(CacheKeyMapper.routine_api_date_sequence_display_key(instance.id, instance.user_id))
+ cache.delete(
+ CacheKeyMapper.routine_api_date_sequence_display_key(instance.id, instance.user_id)
+ )
cache.delete(CacheKeyMapper.routine_api_date_sequence_gym_key(instance.id, instance.user_id))
cache.delete(CacheKeyMapper.routine_api_logs(instance.id, instance.user_id))
cache.delete(CacheKeyMapper.routine_api_stats(instance.id, instance.user_id))