Don't load templates

At the moment templates are not supported in the mobile app.
This commit is contained in:
Roland Geider
2025-03-15 14:55:14 +01:00
parent 9f13e371ba
commit 753a126625

View File

@@ -172,7 +172,7 @@ class RoutinesProvider with ChangeNotifier {
final data = await baseProvider.fetch(
baseProvider.makeUrl(
_routinesUrlPath,
query: {'ordering': '-creation_date', 'limit': '1000'},
query: {'ordering': '-creation_date', 'limit': '1000', 'is_template': 'false'},
),
);
for (final entry in data['results']) {
@@ -186,7 +186,7 @@ class RoutinesProvider with ChangeNotifier {
/// object itself and no child attributes
Future<void> fetchAndSetAllPlansSparse() async {
final data = await baseProvider.fetch(
baseProvider.makeUrl(_routinesUrlPath, query: {'limit': '1000'}),
baseProvider.makeUrl(_routinesUrlPath, query: {'limit': '1000', 'is_template': 'false'}),
);
_routines = [];
for (final workoutPlanData in data['results']) {