Archived
1
0

if synonym name matched in search instead of primary name, emit primary name as synonym

This commit is contained in:
RTB 2014-05-17 14:21:11 +02:00
parent afc1106838
commit b46c7a309d

View File

@ -24,6 +24,10 @@ class NIST(Source):
if title == 'Name Not Found': if title == 'Name Not Found':
log.msg('NIST: Chemical not found!', level=log.ERROR) log.msg('NIST: Chemical not found!', level=log.ERROR)
return return
if title not in self.ignore_list:
self.ignore_list.update(title)
log.msg('NIST emit synonym: %s' % title, level=log.DEBUG)
self._spider.get_synonym_requests(title)
requests = [] requests = []