Fixed time filtering for week/month stats
This commit is contained in:
parent
a127691f65
commit
65846043df
1 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ class PracticeDatabase {
|
||||||
FROM
|
FROM
|
||||||
AnswersView
|
AnswersView
|
||||||
WHERE
|
WHERE
|
||||||
time < before
|
time > before
|
||||||
GROUP BY
|
GROUP BY
|
||||||
type;
|
type;
|
||||||
''');
|
''');
|
||||||
|
@ -86,13 +86,13 @@ class PracticeDatabase {
|
||||||
AS INTEGER
|
AS INTEGER
|
||||||
) as time,
|
) as time,
|
||||||
CAST(
|
CAST(
|
||||||
strftime("%s", DATETIME('now', '-1 month '))
|
strftime("%s", DATETIME('now', '-1 month'))
|
||||||
AS INTEGER
|
AS INTEGER
|
||||||
) as before
|
) as before
|
||||||
FROM
|
FROM
|
||||||
AnswersView
|
AnswersView
|
||||||
WHERE
|
WHERE
|
||||||
time < before
|
time > before
|
||||||
GROUP BY
|
GROUP BY
|
||||||
type;
|
type;
|
||||||
''');
|
''');
|
||||||
|
|
Loading…
Add table
Reference in a new issue