diff options
author | Nat Lasseter <user@4574.co.uk> | 2025-05-14 11:22:28 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2025-05-14 11:22:28 +0100 |
commit | e74db3d02a14742b9eb47c3bea9467858c921a38 (patch) | |
tree | 99bfb8127d67f9563a8ded2ba788220d120bee40 /cgi/home.cgi | |
parent | 721607120366542241fa566b5e72812861f30eb2 (diff) |
[toplinks] trialling new waste thing
Diffstat (limited to 'cgi/home.cgi')
-rw-r--r-- | cgi/home.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/home.cgi b/cgi/home.cgi index 3e8aeeb..ec600a0 100644 --- a/cgi/home.cgi +++ b/cgi/home.cgi @@ -51,7 +51,7 @@ def graphic_collection(resp) events = Array.new(28) { "empty" } resp.each { |coll| - days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceiling + days = ((Time.parse(coll["nextCollection"]) - Time.now) / (60*60*24)).ceil events[days*2] = coll["service"].downcase events[days*2 - 1] = coll["service"].downcase } |