From 3a25d17c9466e714852ab8cae705c2d528091a88 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Mon, 16 Nov 2020 19:51:18 +0100 Subject: [PATCH] Actually return something from the getStats function... --- lib/pages/practice/PracticeDatabase.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/practice/PracticeDatabase.dart b/lib/pages/practice/PracticeDatabase.dart index c30377f..fe9a640 100644 --- a/lib/pages/practice/PracticeDatabase.dart +++ b/lib/pages/practice/PracticeDatabase.dart @@ -125,7 +125,7 @@ class PracticeDatabase { } // TODO test the database - static Future> getStats() async { + static Future> getStats() async { var db = await getDatabase(); List> answers = await db.rawQuery(''' SELECT @@ -165,6 +165,7 @@ class PracticeDatabase { stats[typeRange] = stat['ratio'] as double; } print(stats); + return stats; } static Map getEmtpyStats(){