Amélioration horaires, prend les valeurs théoriques et estimées (pour la ligne B notamment)

This commit is contained in:
tfa
2023-01-04 10:29:26 +01:00
parent b1ae69ebfa
commit 949607a96e

2
tcl.py
View File

@@ -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"