This commit is contained in:
2024-04-01 18:44:50 +02:00
parent e141ac4e88
commit c8011d1ff1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -48,6 +48,7 @@ class Librarian(object):
summarized_results.append({"DOI" : item['DOI'], "title": item['title'], "type": item['type'], "container": container})
result = {"UUID": uuid, "total_results": self.last_search['message']['total-results'], "on_page" : 1, "summary":summarized_results, "results":self.last_search['message']['items'], }
file_data.append(result)
print("Saving")
data_file.seek(0)
# convert back to json.
json.dump(file_data, data_file, indent=4)