Small fix because the cleaned up items were not send back
This commit is contained in:
parent
6dd03c293a
commit
f926f86d7d
@ -46,8 +46,7 @@ class WikipediaParser(Parser):
|
|||||||
items.append(item)
|
items.append(item)
|
||||||
log.msg('Wiki prop: |%s| |%s| |%s|' % (item['attribute'], item['value'], item['source']), level=log.DEBUG)
|
log.msg('Wiki prop: |%s| |%s| |%s|' % (item['attribute'], item['value'], item['source']), level=log.DEBUG)
|
||||||
items=filter(lambda a: a['value']!='', items) #remove items with an empty value
|
items=filter(lambda a: a['value']!='', items) #remove items with an empty value
|
||||||
self.cleanitems(items)
|
return self.cleanitems(items)
|
||||||
return items
|
|
||||||
|
|
||||||
def new_compound_request(self, compound):
|
def new_compound_request(self, compound):
|
||||||
return Request(url=self.website[:-1] + compound, callback=self.parse)
|
return Request(url=self.website[:-1] + compound, callback=self.parse)
|
||||||
|
Reference in New Issue
Block a user