From 0018597006bbcab0124e4b4c7e306bc11d631dd9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 23 Jan 2026 13:54:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96get=5Fpaper=5Fmeta=5F?= =?UTF-8?q?from=5Fopenalex2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/resm/tasks.py b/apps/resm/tasks.py index 3152cd0..3876e96 100644 --- a/apps/resm/tasks.py +++ b/apps/resm/tasks.py @@ -23,13 +23,14 @@ def get_paper_meta_from_openalex(publication_year:int, search_key:str): type="article" # 将 type 移到 filter 中 ).search(search_key).select([ "id", "doi", "title", "publication_date", - "open_access", "authorships", "primary_location", "publication_year" + "open_access", "authorships", "primary_location", "publication_year", + "display_name" ]).paginate(per_page=200, n_max=None, cursor=cache_cursor) next_cursor = pager._next_value for page in pager: papers = [] for record in page: - if record["doi"]: + if record["doi"] and (record["display_name"] or record["title"]): paper = Paper() paper.id = idWorker.get_id() paper.type = "article"