mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Don't load templates
At the moment templates are not supported in the mobile app.
This commit is contained in:
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user