fix this sql query
This commit is contained in:
parent
f3e82b9a21
commit
e4200b9568
|
@ -235,7 +235,7 @@ routes:
|
|||
if (@"kind").startsWith "hashtag-":
|
||||
let channel = (@"kind").replace("hashtag-", "#")
|
||||
|
||||
rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=?, deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20)
|
||||
rows = db.getAllRows(sql"SELECT * FROM quotes WHERE channel=? and deleted=0 ORDER BY time desc LIMIT 20 OFFSET ?", channel, qid * 20)
|
||||
|
||||
title = channel & " page " & @"id"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue