[Monsters] fix bug

This commit is contained in:
Bezleputh 2013-12-21 17:57:52 +01:00
commit 040824ff9f

View file

@ -94,6 +94,9 @@ class AdvertPage(BasePage):
if len(formation) != 0:
advert.formation = u'%s' % formation[0].text
advert.experience = u'%s' % self.parser.select(jobsummary, 'dl/dd/span[@itemprop="qualifications"]', 1, method='xpath').text
experience = u'%s' % self.parser.select(jobsummary, 'dl/dd/span[@itemprop="qualifications"]', method='xpath')
if len(experience) != 0:
advert.experience = experience
advert.url = url
return advert