From 07a260136b82c0623287cc07dc8e71a00621b7ac Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 26 Jan 2026 18:11:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20get=5Fpaper=5Fmeta=5Ffrom=5Fopenalex=20?= =?UTF-8?q?=E5=8F=AF=E8=A7=A6=E5=8F=91=E8=87=AA=E5=B7=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/resm/tasks.py b/apps/resm/tasks.py index b149110..c0de024 100644 --- a/apps/resm/tasks.py +++ b/apps/resm/tasks.py @@ -58,6 +58,8 @@ def get_paper_meta_from_openalex(publication_year:int, search_key:str): papers.append(paper) Paper.objects.bulk_create(papers, ignore_conflicts=True) cache.set(cache_key, next_cursor, timeout=None) + if publication_year + 1 <= 2026: + get_paper_meta_from_openalex.delay(publication_year + 1, search_key) ELSEVIER_APIKEY = 'aa8868cac9e27d6153ab0a0acd7b50bf'