[Apec] fix bug created by commit 174e8ae119
This commit is contained in:
parent
348de39088
commit
2910b55c69
1 changed files with 7 additions and 3 deletions
|
|
@ -233,7 +233,11 @@ class ApecBackend(BaseBackend, ICapJob):
|
|||
yield job_advert
|
||||
|
||||
def decode_choice(self, choice):
|
||||
return choice.split('|')[1]
|
||||
splitted_choice = choice.split('|')
|
||||
if len(splitted_choice) == 2:
|
||||
return splitted_choice[1]
|
||||
else:
|
||||
return ''
|
||||
|
||||
def advanced_search_job(self):
|
||||
for job_advert in self.browser.advanced_search_job(region=self.decode_choice(self.config['place'].get()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue