aboutsummaryrefslogtreecommitdiff
path: root/src/guff/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/models')
-rw-r--r--src/guff/models/tag.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guff/models/tag.cr b/src/guff/models/tag.cr
index ed3a122..46a69eb 100644
--- a/src/guff/models/tag.cr
+++ b/src/guff/models/tag.cr
@@ -40,7 +40,7 @@ module Guff
WHERE name IN (%{tags})
",
- } of Symbol => String)
+ })
def initialize(models : Models)
super(models, SQL)
@@ -71,7 +71,7 @@ module Guff
}) do |row|
r << {
"tag_id": row["tag_id"].to_s.to_i,
- "name": row["name"]?.to_s,
+ "name": row["name"].to_s,
"num_posts": row["num_posts"].to_s.to_i,
}
end