place is array

This commit is contained in:
j 2014-08-11 19:43:14 +02:00
parent d1f63bf0db
commit 7ff736465f

View file

@ -90,7 +90,7 @@ def lookup(id):
data['place'] = [place] data['place'] = [place]
elif ':' in data['publisher']: elif ':' in data['publisher']:
place, publisher = data['publisher'].split(':', 2) place, publisher = data['publisher'].split(':', 2)
data['place'] = place.strip() data['place'] = [place.strip()]
data['publisher'] = publisher.split(',')[0].strip() data['publisher'] = publisher.split(',')[0].strip()
m = re.compile('\d{4}').findall(publisher) m = re.compile('\d{4}').findall(publisher)
if m: if m: