# HG changeset patch # User Teemu Piippo # Date 1498661562 -10800 # Node ID 4354d459c231cec2c08c1098ce22d1ab17664849 # Parent 06000662d87b12255bf2be8d71923a6598b9bc5e Ääh diff -r 06000662d87b -r 4354d459c231 buses.py --- a/buses.py Wed Jun 28 17:51:40 2017 +0300 +++ b/buses.py Wed Jun 28 17:52:42 2017 +0300 @@ -308,6 +308,7 @@ bus_stops_by_name = dict(bus_stops_by_name) # ryhmittele bus_stops nimen mukaan + global all_clusters all_clusters = [] def cluster_bus_stops(): sorted_bus_stops = sorted(bus_stops.values(), key = lambda bus_stop: bus_stop.name) diff -r 06000662d87b -r 4354d459c231 templates/stop.html --- a/templates/stop.html Wed Jun 28 17:51:40 2017 +0300 +++ b/templates/stop.html Wed Jun 28 17:52:42 2017 +0300 @@ -41,10 +41,11 @@ {% for halt in schedule %} - {% if halt['imminent'] %} - - {% endif %} - {{halt['time']}} + + {% if halt['imminent'] %} + + {% endif %} + {{halt['time']}} {{halt['route']}}