diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-03-09 02:18:21 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-03-09 02:18:21 -0500 |
commit | 102fb8e76df142bac2a74a62e3370f8bf168da90 (patch) | |
tree | 7edb821ff7b5605c64beb1608c8a2b652837e7d1 /src/guff | |
parent | ceb1701b31f20c8c8284dd9546bd5973849673c8 (diff) | |
download | old-guff-102fb8e76df142bac2a74a62e3370f8bf168da90.tar.bz2 old-guff-102fb8e76df142bac2a74a62e3370f8bf168da90.zip |
minor cleanups
Diffstat (limited to 'src/guff')
-rw-r--r-- | src/guff/models/tag.cr | 4 |
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 |