Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actions517c6efa1bcb
diff --git a/wger/nutrition/api/views.py b/wger/nutrition/api/views.pyindex 5454854d7..c56d50f2b 100644--- a/wger/nutrition/api/views.py+++ b/wger/nutrition/api/views.py@@ -97,7 +97,7 @@ class IngredientViewSet(viewsets.ReadOnlyModelViewSet):detail queries are cheap PK lookups. Separate buckets keep autocompleteand detail loads from competing for the same quota."""- self.throttle_scope = ('ingredient_list' if self.action == 'list' else 'ingredient_detail')+ self.throttle_scope = 'ingredient_list' if self.action == 'list' else 'ingredient_detail'return super().get_throttles()@method_decorator(cache_page(settings.WGER_SETTINGS['INGREDIENT_CACHE_TTL']))diff --git a/wger/nutrition/tests/test_ingredient.py b/wger/nutrition/tests/test_ingredient.pyindex 35356f6da..51ccc717a 100644--- a/wger/nutrition/tests/test_ingredient.py+++ b/wger/nutrition/tests/test_ingredient.py@@ -794,4 +794,3 @@ class IngredientThrottleScopeTestCase(WgerTestCase):def test_ingredient_sync_uses_sync_scope(self):self.assertEqual(IngredientSyncViewSet.throttle_scope, 'ingredient_sync')-