From 65846043df4e9d9cbf8a512c4f15212ff99e22dc Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 10 Nov 2020 17:44:58 +0100 Subject: [PATCH] Fixed time filtering for week/month stats --- lib/pages/practice/PracticeDatabase.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/practice/PracticeDatabase.dart b/lib/pages/practice/PracticeDatabase.dart index eab4738..ef33531 100644 --- a/lib/pages/practice/PracticeDatabase.dart +++ b/lib/pages/practice/PracticeDatabase.dart @@ -70,7 +70,7 @@ class PracticeDatabase { FROM AnswersView WHERE - time < before + time > before GROUP BY type; '''); @@ -86,13 +86,13 @@ class PracticeDatabase { AS INTEGER ) as time, CAST( - strftime("%s", DATETIME('now', '-1 month ')) + strftime("%s", DATETIME('now', '-1 month')) AS INTEGER ) as before FROM AnswersView WHERE - time < before + time > before GROUP BY type; ''');