fix
This commit is contained in:
parent
c52dd41382
commit
de25e6d05b
1 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ class WetBoobs(ConsoleApplication):
|
|||
print '| ID | Name |'
|
||||
print '+--------------------------------+---------------------------------------------+'
|
||||
count = 0
|
||||
for backend, in self.weboob.iter_backends():
|
||||
for backend in self.weboob.iter_backends():
|
||||
for city in backend.iter_city_search(pattern):
|
||||
print u'| %-31s| %-44s|' % (city.city_id, city.name)
|
||||
count += 1
|
||||
|
|
@ -49,7 +49,7 @@ class WetBoobs(ConsoleApplication):
|
|||
print '| Temperature | Text |'
|
||||
print '+-------------+----------------------------------------------------------------+'
|
||||
found = 0
|
||||
for backend, in self.weboob.iter_backends():
|
||||
for backend in self.weboob.iter_backends():
|
||||
try:
|
||||
current = backend.get_current(city)
|
||||
print u'| %-12s| %-63s|' % (u'%d °%s' % (current.temp, current.unit), current.text)
|
||||
|
|
@ -67,7 +67,7 @@ class WetBoobs(ConsoleApplication):
|
|||
print '| Date | Min | Max | Text |'
|
||||
print '+-------------+-------+-------+------------------------------------------------+'
|
||||
found = 0
|
||||
for backend, in self.weboob.iter_backends():
|
||||
for backend in self.weboob.iter_backends():
|
||||
try:
|
||||
for f in backend.iter_forecast(city):
|
||||
found = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue