summaryrefslogtreecommitdiff
path: root/web/lib/ui/keys.rb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-17 10:10:34 +0200
committerJochen Topf <jochen@topf.org>2014-05-17 10:10:34 +0200
commitb5670d4f86d71a8bc1e558c50cfd421d991dae26 (patch)
tree26444bfc97133b8b2951169f751caf0af88e5817 /web/lib/ui/keys.rb
parentb187abceaf7732d25724552cf667d1f6b50f0cab (diff)
downloadtaginfo-b5670d4f86d71a8bc1e558c50cfd421d991dae26.tar
taginfo-b5670d4f86d71a8bc1e558c50cfd421d991dae26.tar.gz
Refactoring some sql code.
Diffstat (limited to 'web/lib/ui/keys.rb')
-rw-r--r--web/lib/ui/keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/ui/keys.rb b/web/lib/ui/keys.rb
index 162792e..6f3e0d0 100644
--- a/web/lib/ui/keys.rb
+++ b/web/lib/ui/keys.rb
@@ -46,7 +46,7 @@ class Taginfo < Sinatra::Base
end
@josm_count = @db.count('josm_style_rules').condition('k = ?', @key).get_first_i
- @wiki_count = @db.count('wiki.wikipages').condition('value IS NULL').condition('key=?', @key).get_first_i
+ @wiki_count = @db.count('wiki.wikipages').condition('key=? AND value IS NULL', @key).get_first_i
@user_count = @db.select('SELECT users_all FROM db.keys').condition('key=?', @key).get_first_i
@img_width = TaginfoConfig.get('geodistribution.width') * TaginfoConfig.get('geodistribution.scale_image')