diff options
author | Jochen Topf <jochen@topf.org> | 2014-07-28 11:41:30 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-07-28 11:41:30 +0200 |
commit | eaae8b4713c1894be3a8aec112c0d6b5bbe955fa (patch) | |
tree | 96165f17a01c6812667ed97c13158f903c44931f /web/lib | |
parent | e6b3d63fea077ed1617697852e8a600e0e9102e7 (diff) | |
download | taginfo-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.rb | 2 |
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 |