ratp: Display M14 trains 5 minutes ahead
This commit is contained in:
parent
bbda54a31e
commit
b334376ea0
@ -483,13 +483,17 @@ class RATPNextStopModule:
|
|||||||
|
|
||||||
align = 0
|
align = 0
|
||||||
|
|
||||||
mint = datetime.now() + timedelta(minutes=10)
|
|
||||||
|
|
||||||
api = IDFMAPI(config)
|
api = IDFMAPI(config)
|
||||||
for stop in stops:
|
for stop in stops:
|
||||||
tmp = stop.split("/", 2)
|
tmp = stop.split("/", 2)
|
||||||
mode = tmp[0][0]
|
mode = tmp[0][0]
|
||||||
line = tmp[0][1:]
|
line = tmp[0][1:]
|
||||||
|
|
||||||
|
if tmp[0] == "M14":
|
||||||
|
mint = datetime.now() + timedelta(minutes=4)
|
||||||
|
else:
|
||||||
|
mint = datetime.now() + timedelta(minutes=10)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if 1 < len(tmp) < 4:
|
if 1 < len(tmp) < 4:
|
||||||
prep = {}
|
prep = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user