From b91482609bb1b0b8251e82145d2a4943ee0b074c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 10 Mar 2026 09:33:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0doi=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/resm/views.py b/apps/resm/views.py index fde4e9e..51ec7ef 100644 --- a/apps/resm/views.py +++ b/apps/resm/views.py @@ -10,7 +10,7 @@ class PaperViewSet(CustomGenericViewSet, CustomListModelMixin): queryset = Paper.objects.all() serializer_class = PaperListSerializer filterset_fields = ["publication_year", "type", "fetch_status", - "has_abstract", "has_fulltext"] + "has_abstract", "has_fulltext", "doi"] search_fields = ['title', 'first_author', 'first_author_institution'] ordering = ["-publication_date", "-create_time"] From 4090ce457d126767ea4464160640e6a84c506e37 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 11 Mar 2026 12:27:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20downloadpf=20=E5=85=88=E4=B8=8D?= =?UTF-8?q?=E8=B5=B0openalex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/resm/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/resm/tasks.py b/apps/resm/tasks.py index 40f769e..41c757c 100644 --- a/apps/resm/tasks.py +++ b/apps/resm/tasks.py @@ -403,9 +403,9 @@ def download_pdf(paper_id): if paper.has_fulltext_pdf is False and paper.publication_year <= 2021: current_from = "scihub" msg = save_pdf_from_scihub(paper) - 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 and cache.get("openalex_api_exceed") is None: + # current_from = "openalex" + # msg = save_pdf_from_openalex(paper) if paper.fail_reason is None and paper.has_fulltext_pdf is False: paper.save_fail_reason(msg) return msg, current_from