feat: save_pdf_from_scihub返回信息

This commit is contained in:
caoqianming 2026-02-04 12:47:34 +08:00
parent d7aa8f8ada
commit be264fd558
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,8 @@ def save_pdf_from_scihub(paper:Paper):
paper.has_fulltext = True
paper.has_fulltext_pdf = True
paper.save(update_fields=["has_fulltext", "has_fulltext_pdf"])
return "success"
else:
paper.save_fail_reason(err_msg)
return err_msg
# https://sci.bban.top/pdf/10.1016/j.conbuildmat.2020.121016.pdf?download=true