no more need to print format result
This commit is contained in:
parent
57b2243ada
commit
0c425a2e9b
6 changed files with 12 additions and 18 deletions
|
|
@ -38,9 +38,9 @@ class Travel(ConsoleApplication):
|
|||
@ConsoleApplication.command('Search stations')
|
||||
def command_stations(self, pattern):
|
||||
for backend, station in self.weboob.do('iter_station_search', pattern):
|
||||
print self.format(station)
|
||||
self.format(station)
|
||||
|
||||
@ConsoleApplication.command('List all departures on a special station')
|
||||
def command_departures(self, station, arrival=None):
|
||||
for backend, departure in self.weboob.do('iter_station_departures', station, arrival):
|
||||
print self.format(departure)
|
||||
self.format(departure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue