NR: Give scheduled times a neutral colour status
This commit is contained in:
parent
b3b6ac823b
commit
cad3482069
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue