summaryrefslogtreecommitdiff
path: root/web/taginfo.rb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2010-11-14 15:50:56 +0100
committerJochen Topf <jochen@topf.org>2010-11-14 15:50:56 +0100
commitfb39187ad8f7f78b4b27af5b3992e103d2d8638b (patch)
tree2c4b7802e7b0af7f2938e08f752a1aef9d22ce54 /web/taginfo.rb
parent626e8a38ec2610197ff96252cd1110389021d698 (diff)
downloadtaginfo-fb39187ad8f7f78b4b27af5b3992e103d2d8638b.tar
taginfo-fb39187ad8f7f78b4b27af5b3992e103d2d8638b.tar.gz
Prevalent values improvements, some things moved around, reports active
Diffstat (limited to 'web/taginfo.rb')
-rwxr-xr-xweb/taginfo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/taginfo.rb b/web/taginfo.rb
index a3de09b..2b88ee6 100755
--- a/web/taginfo.rb
+++ b/web/taginfo.rb
@@ -50,8 +50,8 @@ TAGCLOUD_NUMBER_OF_TAGS = 200
db = SQL::Database.new('../../data')
# XXX update this to use new sources table
-db.select('SELECT * FROM master_meta ORDER BY source_name').execute().each do |source|
- Source.new source['source_id'], source['source_name'], source['data_until'], source['update_start'], source['update_end']
+db.select('SELECT * FROM sources ORDER BY no').execute().each do |source|
+ Source.new source['id'], source['name'], source['data_until'], source['update_start'], source['update_end'], source['visible'] == '1'
end
db.close