Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Merge branch 'master' into feature/flexible-routines

Roland Geiderf5837d4d2a16
diff --cc .gitignore
index 5bb40e0a0,26effae14..03169688a
--- a/.gitignore
+++ b/.gitignore
@@@ -76,6 -78,8 +78,9 @@@ venv-wge
/coverage.lcov
/media/
/static/
+/db/
/extras/docker/open-food-facts/dump/*.tar.gz
/extras/docker/open-food-facts/dump/off/*
+
+ # macOS
+ .DS_Store
diff --cc wger/utils/cache.py
index 6e8f8d94b,3abd578b6..a84257805
--- a/wger/utils/cache.py
+++ b/wger/utils/cache.py
@@@ -31,8 -31,12 +31,8 @@@ def delete_template_fragment_cache(frag
cache.delete(make_template_fragment_key(fragment_name, out))
-def reset_workout_canonical_form(workout_id):
- cache.delete(cache_mapper.get_workout_canonical(workout_id))
-
-
def reset_exercise_api_cache(uuid: str):
- cache.delete(cache_mapper.get_exercise_api_key(uuid))
+ cache.delete(CacheKeyMapper.get_exercise_api_key(uuid))
def reset_workout_log(user_pk, year, month, day=None):