aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-07-28 11:41:30 +0200
committerJochen Topf <jochen@topf.org>2014-07-28 11:41:30 +0200
commiteaae8b4713c1894be3a8aec112c0d6b5bbe955fa (patch)
tree96165f17a01c6812667ed97c13158f903c44931f /web/lib
parente6b3d63fea077ed1617697852e8a600e0e9102e7 (diff)
downloadtaginfo-eaae8b4713c1894be3a8aec112c0d6b5bbe955fa.tar
taginfo-eaae8b4713c1894be3a8aec112c0d6b5bbe955fa.tar.gz
Use last update of database as "master" update time.
This time is shown on the upper right and is also used for the alarm on the master site. It used to take the minimum time of all the sources. But most people probably expect the database update time as it is the most relevant.
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/sql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/sql.rb b/web/lib/sql.rb
index 286355f..39c1ff1 100644
--- a/web/lib/sql.rb
+++ b/web/lib/sql.rb
@@ -16,7 +16,7 @@ module SQL
Source.new(source['id'], source['name'], source['data_until'], source['update_start'], source['update_end'], source['visible'].to_i == 1)
end
- data_until = db.select("SELECT min(data_until) FROM sources").get_first_value().sub(/:..$/, '')
+ data_until = db.select("SELECT min(data_until) FROM sources WHERE id='db'").get_first_value().sub(/:..$/, '')
db.close