Fixed answer db views, seperate name for generated time in seconds
This commit is contained in:
parent
d81de96800
commit
1728ef4690
1 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ class PracticeDatabase {
|
|||
CAST(
|
||||
strftime('%s', time)
|
||||
AS INTEGER
|
||||
) as time,
|
||||
) as s_time,
|
||||
CAST(
|
||||
strftime("%s", DATETIME('now', '-7 day'))
|
||||
AS INTEGER
|
||||
|
@ -70,7 +70,7 @@ class PracticeDatabase {
|
|||
FROM
|
||||
AnswersView
|
||||
WHERE
|
||||
time > before
|
||||
s_time > before
|
||||
GROUP BY
|
||||
type;
|
||||
''');
|
||||
|
@ -84,7 +84,7 @@ class PracticeDatabase {
|
|||
CAST(
|
||||
strftime('%s', time)
|
||||
AS INTEGER
|
||||
) as time,
|
||||
) as s_time,
|
||||
CAST(
|
||||
strftime("%s", DATETIME('now', '-1 month'))
|
||||
AS INTEGER
|
||||
|
@ -92,7 +92,7 @@ class PracticeDatabase {
|
|||
FROM
|
||||
AnswersView
|
||||
WHERE
|
||||
time > before
|
||||
s_time > before
|
||||
GROUP BY
|
||||
type;
|
||||
''');
|
||||
|
|
Loading…
Add table
Reference in a new issue