From b9d0e00634403aad1b8ac5a07117adee454a0cf8 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Sun, 20 Nov 2022 15:17:46 +0100 Subject: [PATCH] fix bug --- hw02/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw02/import.py b/hw02/import.py index 3122b06..dea1a0d 100644 --- a/hw02/import.py +++ b/hw02/import.py @@ -177,10 +177,10 @@ def json_to_paper(filename: str, jsonObj: dict) -> dict: i = 0 references = [] for key, value in getProp(jsonObj, "bib_entries", {}).items(): - i += 1 if value is None: continue + i += 1 ref = { "referenceNumber": i, "doi": getProp(value, "doi"),