feat: downloadpf 先不走openalex

This commit is contained in:
caoqianming 2026-03-11 12:27:58 +08:00
parent b91482609b
commit 4090ce457d
1 changed files with 3 additions and 3 deletions

View File

@ -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