diff options
author | Jochen Topf <jochen@topf.org> | 2015-02-27 09:32:09 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-02-27 09:32:09 +0100 |
commit | d81547f3467db9601c8bda723b5607fa1e6b9a1e (patch) | |
tree | ddec4aa529917f42164808c7a714ecc28500483e /web/lib | |
parent | b27824c4b7696b0947861cf58c398716c8464d86 (diff) | |
download | taginfo-d81547f3467db9601c8bda723b5607fa1e6b9a1e.tar taginfo-d81547f3467db9601c8bda723b5607fa1e6b9a1e.tar.gz |
Add historic development report.
It shows the number of unique keys, tags, and relation types as it changes over
time.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/reports.rb | 5 | ||||
-rw-r--r-- | web/lib/sql.rb | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/web/lib/reports.rb b/web/lib/reports.rb index a822476..0412181 100644 --- a/web/lib/reports.rb +++ b/web/lib/reports.rb @@ -59,6 +59,7 @@ Report.new 'Key lengths', :db Report.new 'Language comparison table for keys in the wiki', :wiki Report.new 'Languages', :wiki Report.new 'Wiki pages about non-existing keys', :db, :wiki -Report.new 'Name tags' -#Report.new 'Similar keys', :db +Report.new 'Name tags' #disabled +Report.new 'Similar keys' #disabled, :db +Report.new 'Historic development', :db diff --git a/web/lib/sql.rb b/web/lib/sql.rb index 2845858..030cf37 100644 --- a/web/lib/sql.rb +++ b/web/lib/sql.rb @@ -38,6 +38,7 @@ module SQL @db.execute("ATTACH DATABASE ? AS ?", "#{ @@dir }/#{ source.dbname }", source.id.to_s) end @db.execute("ATTACH DATABASE ? AS search", "#{ @@dir }/taginfo-search.db") + @db.execute("ATTACH DATABASE ? AS history", "#{ @@dir }/taginfo-history.db") self end |