aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/models')
-rw-r--r--src/guff/models/post.cr3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/guff/models/post.cr b/src/guff/models/post.cr
index 98a0226..7fd6ec1 100644
--- a/src/guff/models/post.cr
+++ b/src/guff/models/post.cr
@@ -168,7 +168,6 @@ module Guff
# build tmpl args
tmpl_args = {
- # TODO
"filter": get_filter_clause(filters),
"sort": get_sort_clause(sort),
"dir": dir,
@@ -179,7 +178,7 @@ module Guff
# count number of matching rows
num_rows = (one(:count_posts, sql_args, tmpl_args).to_s || 0).to_i
- # TODO: add Post class?
+ # build rows
rows = [] of Post
if num_rows > 0
all(:get_posts, sql_args.merge({