From 33936f3da93f8330a8af2116689e610fc50a38e2 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 18 Jan 2013 20:28:25 +0100 Subject: Remove test/tags page --- web/lib/ui/test.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'web/lib') diff --git a/web/lib/ui/test.rb b/web/lib/ui/test.rb index 59c3416..59a68ed 100644 --- a/web/lib/ui/test.rb +++ b/web/lib/ui/test.rb @@ -6,18 +6,6 @@ class Taginfo < Sinatra::Base erb :'test/index' end - get! '/test/tags' do - section :test - @title = ['Tags', 'Test'] - limit = 300; - (@min, @max) = @db.select('SELECT min(count) AS min, max(count) AS max FROM popular_keys').get_columns(:min, :max) - @tags = @db.select("SELECT key, count, (count - ?) / (? - ?) AS scale, in_wiki, in_josm FROM popular_keys ORDER BY count DESC LIMIT #{limit}", @min.to_f, @max, @min). - execute(). - each_with_index{ |tag, idx| tag['pos'] = (limit - idx) / limit.to_f }. - sort_by{ |row| row['key'] } - erb :'test/tags' - end - get '/test/wiki_import' do section :test @title = ['Wiki Import', 'Test'] -- cgit v1.2.3