Commit f03aa842 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[cragr] return iterable advisors for api website

boobank need iterable element
parent a6c869d0
......@@ -535,12 +535,12 @@ class CragrAPI(LoginBrowser):
advisor = self.page.get_advisor()
self.profile_details.go()
self.page.fill_advisor(obj=advisor)
return advisor
yield advisor
elif owner_type == 'ORGA':
advisor = self.page.get_advisor()
self.pro_profile_details.go()
self.page.fill_advisor(obj=advisor)
return advisor
yield advisor
@need_login
def get_profile(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment