diff options
author | Jochen Topf <jochen@topf.org> | 2014-09-18 12:38:03 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-09-18 12:38:03 +0200 |
commit | cf8b1f0e8b31281f957014fe6767bda4f2822147 (patch) | |
tree | d2d603f6a4cf6fc99c66503c21ba8354bcffde91 /web/lib | |
parent | bba06227dd2b6eb0979367185cb0489d2acfbeaa (diff) | |
download | taginfo-cf8b1f0e8b31281f957014fe6767bda4f2822147.tar taginfo-cf8b1f0e8b31281f957014fe6767bda4f2822147.tar.gz |
Always return false for in_josm in api/v4/keys and document that.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/api/v4/keys.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/lib/api/v4/keys.rb b/web/lib/api/v4/keys.rb index b0072ff..723efe0 100644 --- a/web/lib/api/v4/keys.rb +++ b/web/lib/api/v4/keys.rb @@ -27,7 +27,7 @@ class Taginfo < Sinatra::Base [:values_all, :INT, 'Number of different values for this key.'], [:users_all, :INT, 'Number of users owning objects with this key.'], [:in_wiki, :BOOL, 'Has this key at least one wiki page?'], - [:in_josm, :BOOL, 'Is this key referenced in at least one JOSM style rule?'] + [:in_josm, :BOOL, 'DEPRECATED. Now always false.'] ]), :example => { :page => 1, :rp => 10, :filter => 'in_wiki', :sortname => 'key', :sortorder => 'asc' }, :ui => '/keys' @@ -135,8 +135,8 @@ class Taginfo < Sinatra::Base :count_relations_fraction => (row['count_relations'].to_f / @db.stats('relations')).round_to(4), :values_all => row['values_all'].to_i, :users_all => row['users_all'].to_i, - :in_wiki => row['in_wiki'].to_i == 1 ? true : false, - :in_josm => row['in_josm'].to_i == 1 ? true : false + :in_wiki => row['in_wiki'].to_i == 1 ? true : false, + :in_josm => false } h[:wikipages] = row['wikipages'] if row['wikipages'] h[:prevalent_values] = row['prevalent_values'][0,10] if row['prevalent_values'] |