Merge branch 'master' into production

pull/91/head
eric 2017-09-28 14:18:07 -04:00
commit 4e7f45e903
1 changed files with 2 additions and 2 deletions

View File

@ -199,10 +199,10 @@ class BaseScraper(object):
creator_list = [] creator_list = []
value_list = authlist_cleaner(value_list) value_list = authlist_cleaner(value_list)
if len(value_list) == 1: if len(value_list) == 1:
self.set('creator', {'author': {'agent_name': auth.strip()}}) self.set('creator', {'author': {'agent_name': value_list[0]}})
return return
for auth in value_list: for auth in value_list:
creator_list.append({'agent_name': auth.strip()}) creator_list.append({'agent_name': auth})
self.set('creator', {'authors': creator_list }) self.set('creator', {'authors': creator_list })