Fixed time filtering for week/month stats

This commit is contained in:
BroodjeAap 2020-11-10 17:44:58 +01:00
parent a127691f65
commit 65846043df

View file

@ -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;
''');