Skip to content
Snippets Groups Projects
Commit 5d8feb7f authored by Peter Mercell's avatar Peter Mercell
Browse files

Instead of returning no element when problem with parsing, return an empty element

parent 5514c202
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,14 @@ def parse_txt(txt_data,parser):
books = str(txt_data,"utf-8").split('\n')
for book in books:
if create_query_using_attributes_txt(book, query) == "NO DATA":
output.append({
"author": "",
"bibliographic": "",
"doi": "",
"doi score": "",
"doi_link": "",
"title": "",
})
query = {}
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment