From e4200b95685689a0088e087350997550fdff0272 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 6 Feb 2016 14:46:41 -0800 Subject: [PATCH] fix this sql query --- src/quotesite.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quotesite.nim b/src/quotesite.nim index 20d58bb..9dac970 100644 --- a/src/quotesite.nim +++ b/src/quotesite.nim @@ -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: