Weboob.iter_backends() does not return backend name anymore
This commit is contained in:
parent
3ea53cd2f0
commit
daa27da3ce
10 changed files with 20 additions and 20 deletions
|
|
@ -87,7 +87,7 @@ class TransilienUI():
|
|||
liste = []
|
||||
|
||||
#liste = ConfFile('/opt/masstransit/masstransit.cfg').config.items('ListeDesGares')
|
||||
for name, backend in self.weboob.iter_backends():
|
||||
for backend in self.weboob.iter_backends():
|
||||
for station in backend.iter_station_search(""):
|
||||
liste.append(station)
|
||||
|
||||
|
|
@ -141,7 +141,7 @@ class TransilienUI():
|
|||
def refresh(self):
|
||||
"update departures"
|
||||
self.treestore.clear()
|
||||
for name, backend in self.weboob.iter_backends():
|
||||
for backend in self.weboob.iter_backends():
|
||||
for station in backend.iter_station_search(self.combo_source.get_current_text()):
|
||||
for arrival in backend.iter_station_search(self.combo_dest.get_current_text()):
|
||||
for departure in backend.iter_station_departures(station.id, arrival.id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue