remove trailing spaces
This commit is contained in:
parent
892b85274a
commit
512bfe6b0b
3 changed files with 3 additions and 3 deletions
|
|
@ -280,7 +280,7 @@ class AdeccoBackend(BaseBackend, ICapJob):
|
|||
|
||||
def search_job(self, pattern=None):
|
||||
with self.browser:
|
||||
for advert in self.browser.search_job(pattern,
|
||||
for advert in self.browser.search_job(pattern,
|
||||
publication_date=int(self.config['publication_date'].get()),
|
||||
conty=int(self.config['conty'].get()),
|
||||
region=int(self.config['region'].get()),
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class AdeccoBrowser(BaseBrowser):
|
|||
def search_job(self, pattern = None, publication_date = None, conty = None, region = None, job_category = None, activity_domain = None):
|
||||
if pattern:
|
||||
self.location('%s://%s/trouver-un-emploi/Pages/Offres-d-emploi.aspx?keywords=%s' % (self.PROTOCOL, self.DOMAIN, pattern.replace(' ', '+')))
|
||||
else:
|
||||
else:
|
||||
data = {
|
||||
'publicationDate': publication_date,
|
||||
'department' : conty,
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class DetailsPage(BasePage):
|
|||
mydate_str = re.search('&date=(?P<date>\d*)$',
|
||||
alink.attrib.get('href')).group('date')
|
||||
mydate = datetime.strptime(mydate_str, "%Y%m%d").date()
|
||||
|
||||
|
||||
bill = Bill()
|
||||
bill.label = unicode(mydate_str)
|
||||
bill.id = unicode(mydate_str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue