NR: Give scheduled times a neutral colour status

This commit is contained in:
Evelyn 2017-04-04 10:18:54 +01:00
parent b3b6ac823b
commit cad3482069

View file

@ -101,6 +101,7 @@ class Module(object):
a["on_time"] = a["ut"] - times["s"+ k[1:]]["ut"] < 300
a["status"] = 1 if a["on_time"] else 2
if "a" + k[1:] in service: a["status"] = {"d": 3, "a": 0}[k[2]]
if k[0] = "s": a["status"] = 4
times["arrival"] = [times[a] for a in a_types + d_types if times[a]["ut"]][0]
times["departure"] = [times[a] for a in d_types + a_types if times[a]["ut"]][0]