diff --git a/ippisite/ippidb/ws.py b/ippisite/ippidb/ws.py index fa72b16dcb9373f28a123eb17169bcc5baba15c5..c7341d5962e0098e1b3ec401c243c48583b01b54 100644 --- a/ippisite/ippidb/ws.py +++ b/ippisite/ippidb/ws.py @@ -34,9 +34,9 @@ def get_epo_info(patent_number): if isinstance(exchange_doc, list): exchange_doc = exchange_doc[0] title = [el['$'] - for el in exchange_doc['bibliographic-data']['invention-title'] if el['@lang'] == 'en'] + for el in exchange_doc['bibliographic-data']['invention-title'] if el['@lang'] == 'en'][0] authors = [i['inventor-name']['name']['$'] - for i in exchange_doc['bibliographic-data']['parties']['inventors']['inventor'] if i['@data-format'] == 'original'] + for i in exchange_doc['bibliographic-data']['parties']['inventors']['inventor'] if i['@data-format'] == 'original'][0] biblio_year = [el['date']['$'][:4] for el in exchange_doc['bibliographic-data']['publication-reference']['document-id'] if el['@document-id-type'] == 'epodoc'][0] return {'title': title,