From 43e8dbc2265f94497cf0e0aa16654aab62dbf83d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 3 Feb 2026 15:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0d=5Fscihub=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/resm/tasks.py b/apps/resm/tasks.py index bc5f516..8dfbdea 100644 --- a/apps/resm/tasks.py +++ b/apps/resm/tasks.py @@ -336,7 +336,7 @@ def download_pdf(paper_id): # if paper.has_fulltext_pdf is False and cache.get("openalex_api_exceed") is None: # current_from = "openalex" # msg = save_pdf_from_openalex(paper) - if paper.has_fulltext_pdf is False: + if paper.has_fulltext_pdf is False and paper.publication_year <= 2021: msg = save_pdf_from_scihub(paper) return msg, current_from finally: