summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2015-03-06 09:29:50 +0100
committerJochen Topf <jochen@topf.org>2015-03-06 09:34:33 +0100
commit520653a8706185f4c182f78d6f373c91a40eab54 (patch)
tree344df2c7e15d864836e1570e57f5240060059c14
parentb87fe508a5ff02860249c494e5370b2bd608167a (diff)
downloadtaginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar
taginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar.gz
Add history database to download page.
-rwxr-xr-xsources/update_all.sh6
-rw-r--r--web/i18n/de.yml3
-rw-r--r--web/i18n/en.yml3
-rw-r--r--web/views/download.erb8
4 files changed, 17 insertions, 3 deletions
diff --git a/sources/update_all.sh b/sources/update_all.sh
index b511ecd..33376de 100755
--- a/sources/update_all.sh
+++ b/sources/update_all.sh
@@ -77,8 +77,10 @@ for source in $SOURCES_CREATE; do
bzip2 -9 -c $DIR/$source/taginfo-$source.db >$DIR/download/taginfo-$source.db.bz2 &
done
sleep 5 # wait for bzip2 on the smaller dbs to finish
-bzip2 -9 -c $DIR/taginfo-master.db >$DIR/download/taginfo-master.db.bz2 &
-bzip2 -9 -c $DIR/taginfo-search.db >$DIR/download/taginfo-search.db.bz2 &
+
+for db in master history search; do
+ bzip2 -9 -c $DIR/taginfo-$db.db >$DIR/download/taginfo-$db.db.bz2 &
+done
wait
echo "Done."
diff --git a/web/i18n/de.yml b/web/i18n/de.yml
index f1d36b7..9659510 100644
--- a/web/i18n/de.yml
+++ b/web/i18n/de.yml
@@ -459,6 +459,9 @@ sources:
master:
name: Master
description: Zusammengefaßte Statistiken und Verschiedenes für die Taginfo-Webseite.
+ history:
+ name: History
+ description: Zusammengefaßte Statistiken über die Zeit.
db:
name: Datenbank
description: Statistik über jeden Key und Tag aus der OSM-Datenbank (Planet-Datei).
diff --git a/web/i18n/en.yml b/web/i18n/en.yml
index 4539099..74d1fee 100644
--- a/web/i18n/en.yml
+++ b/web/i18n/en.yml
@@ -439,6 +439,9 @@ sources:
master:
name: Master
description: Aggregate statistics and miscellaneous data needed for the taginfo user interface.
+ history:
+ name: History
+ description: Aggregate statistics over time.
db:
name: Database
description: Statistics about each key and each tag from the main OSM database (planet file).
diff --git a/web/views/download.erb b/web/views/download.erb
index 27ac3a1..f38cf75 100644
--- a/web/views/download.erb
+++ b/web/views/download.erb
@@ -16,7 +16,13 @@
<td class="tr"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td>
<td class="tl"><%= h(t.sources.master.description) %></td>
</tr>
-<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? ' even' : '' %>
+ <tr>
+ <td class="tl even"><a rel="nofollow" href="/download/taginfo-history.db.bz2">taginfo-history.db.bz2</a></td>
+ <td class="tr even"><%= File.size("../../download/taginfo-history.db.bz2").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td>
+ <td class="tr even"><%= File.size("../../data/taginfo-history.db").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td>
+ <td class="tl even"><%= h(t.sources.history.description) %></td>
+ </tr>
+<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? '' : ' even' %>
<tr>
<td class="tl<%= c %>"><%= source.link_download %></td>
<td class="tr<%= c %>"><%= source.dbpack != 0 ? source.dbpack : "<span class='empty'>#{ t.misc.unknown }</span>" %></td>