diff options
author | Jochen Topf <jochen@topf.org> | 2013-02-10 10:16:01 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-02-10 10:16:01 +0100 |
commit | d83a79f970d6d6f4f857c78e8041021780fa4141 (patch) | |
tree | 66b43827c793d41ac83340038d1f5c05e65b2cc8 | |
parent | c203c08338b3cac5a8c26deb809943dadf08f468 (diff) | |
download | taginfo-d83a79f970d6d6f4f857c78e8041021780fa4141.tar taginfo-d83a79f970d6d6f4f857c78e8041021780fa4141.tar.gz |
Fix for #21: Description returned null
-rw-r--r-- | web/lib/api/v4/key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/api/v4/key.rb b/web/lib/api/v4/key.rb index a67209b..d084110 100644 --- a/web/lib/api/v4/key.rb +++ b/web/lib/api/v4/key.rb @@ -277,7 +277,7 @@ class Taginfo < Sinatra::Base :count => row['count_' + filter_type].to_i, :fraction => (row['count_' + filter_type].to_f / this_key_count.to_f).round_to(4), :in_wiki => row['in_wiki'] == 1, - :description => wikidesc[row['value']] + :description => wikidesc[row['value']] || '' } } }.to_json end |