Amélioration horaires, prend les valeurs théoriques et estimées (pour la ligne B notamment)
This commit is contained in:
2
tcl.py
2
tcl.py
@@ -30,6 +30,7 @@ class Terminus:
|
|||||||
if h == "Proche":
|
if h == "Proche":
|
||||||
inth.append(0)
|
inth.append(0)
|
||||||
else :
|
else :
|
||||||
|
if inth.count(int(h[:-4])) == 0:
|
||||||
inth.append(int(h[:-4]))
|
inth.append(int(h[:-4]))
|
||||||
inth.sort()
|
inth.sort()
|
||||||
return inth
|
return inth
|
||||||
@@ -181,7 +182,6 @@ class Tcl(Plugin):
|
|||||||
|
|
||||||
for value in values:
|
for value in values:
|
||||||
if value["id"] in Ids:
|
if value["id"] in Ids:
|
||||||
if value["type"] == "E": #Filtré sur les estimés et non théoriques
|
|
||||||
# Les metros ont leur propre code
|
# Les metros ont leur propre code
|
||||||
if value["coursetheorique"].split('-')[0] == "301A" :
|
if value["coursetheorique"].split('-')[0] == "301A" :
|
||||||
transport = "A"
|
transport = "A"
|
||||||
|
|||||||
Reference in New Issue
Block a user