From cfbd94c8b07630ab0eb27c26c6e8580040d76e7a Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 27 Jan 2026 14:45:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20paper=20save=E6=97=B6=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/tasks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/resm/tasks.py b/apps/resm/tasks.py index 1d07370..eefad47 100644 --- a/apps/resm/tasks.py +++ b/apps/resm/tasks.py @@ -158,7 +158,9 @@ def get_abstract_from_elsevier(publication_year: int = None, number_of_task:int paper_file = os.path.join(paper_dir, f"{safe_doi}.xml") with open(paper_file, "wb") as f: f.write(xml_str.encode("utf-8")) - paper.save(update_fields=["has_abstract", "has_abstract_xml", "has_fulltext", "has_fulltext_xml", "update_time"]) + paper.save(update_fields=["has_abstract", + "has_abstract_xml", "has_fulltext", + "has_fulltext_xml", "update_time", "fetch_status", "fail_reason"]) elif res.status_code == 404: paper.fail_reason = "elsevier_doi_not_found"