diff --git a/forms.tmpl b/forms.tmpl index 862aff1..91f1b21 100644 --- a/forms.tmpl +++ b/forms.tmpl @@ -6,9 +6,11 @@ # # #proc genThreadsList(c: var TForumData, count: var int): string = +# const queryAdmin = sql"""select id, name, views, modified from thread +# order by modified desc limit ?, ?""" # const query = sql"""select id, name, views, modified from thread # where id in (select thread from post where author in -# (select id from person where ban <> 'MODERATED')) +# (select id from person where status <> 'MODERATED')) # order by modified desc limit ?, ?""" # const threadId = 0 # const name = 1 @@ -37,7 +39,8 @@