diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-23 17:53:42 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-23 17:53:42 +0100 |
commit | e82337c44404f4e42081db24152e86c8ca41e7a5 (patch) | |
tree | 0317f4e8dd93747211aa169e2cf472c8734a71c8 /web/lib | |
parent | f1751955ffb2a3d77db02d591fafdbb95c287b9f (diff) | |
download | taginfo-e82337c44404f4e42081db24152e86c8ca41e7a5.tar taginfo-e82337c44404f4e42081db24152e86c8ca41e7a5.tar.gz |
fix default for min_count on report
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/reports.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/lib/api/reports.rb b/web/lib/api/reports.rb index 8045fee..a0dc606 100644 --- a/web/lib/api/reports.rb +++ b/web/lib/api/reports.rb @@ -27,7 +27,10 @@ class Taginfo < Sinatra::Base :ui => '/reports/frequently_used_keys_without_wiki_page' }) do - min_count = params[:min_count].to_i || 10000 + min_count = params[:min_count].to_i + if min_count == 0 + min_count = 10000 + end english = (params[:english] == '1') ? '_en' : '' |