From eaae8b4713c1894be3a8aec112c0d6b5bbe955fa Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 28 Jul 2014 11:41:30 +0200 Subject: 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. --- web/lib/sql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/lib') 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 -- cgit v1.2.3