merge do_caps() and do_backends() into do() (optional keyword params 'backends' and 'caps')
This commit is contained in:
parent
5d33778986
commit
fc4badf88e
13 changed files with 53 additions and 103 deletions
|
|
@ -60,7 +60,7 @@ class HaveSex(PromptApplication):
|
|||
_id, backend_name = self.parse_id(id)
|
||||
|
||||
found = 0
|
||||
for backend, profile in self.weboob.do_backends(backend_name, 'get_profile', _id):
|
||||
for backend, profile in self.weboob.do('get_profile', _id, backends=backend_name):
|
||||
if profile:
|
||||
print profile.get_profile_text().encode('utf-8')
|
||||
found = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue