From 25100ab7d967f2e01c1ee2031a551a5431ad461a Mon Sep 17 00:00:00 2001 From: unknown <55nknown@pm.me> Date: Thu, 2 Sep 2021 18:08:31 +0200 Subject: [PATCH] add test school --- filcnaplo/lib/api/client.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/filcnaplo/lib/api/client.dart b/filcnaplo/lib/api/client.dart index 42638e9..8005fd0 100644 --- a/filcnaplo/lib/api/client.dart +++ b/filcnaplo/lib/api/client.dart @@ -20,7 +20,13 @@ class FilcAPI { http.Response res = await http.get(Uri.parse(SCHOOL_LIST)); if (res.statusCode == 200) { - return (jsonDecode(res.body) as List).cast().map((json) => School.fromJson(json)).toList(); + List schools = (jsonDecode(res.body) as List).cast().map((json) => School.fromJson(json)).toList(); + schools.add(School( + city: "Tiszabura", + instituteCode: "supporttest-reni-tiszabura-teszt01", + name: "FILC Éles Reni tiszabura-teszt", + )); + return schools; } else { throw "HTTP ${res.statusCode}: ${res.body}"; }