feat: get_paper_meta_from_openalex 可触发自己

This commit is contained in:
caoqianming 2026-01-26 18:11:10 +08:00
parent 764650275f
commit 07a260136b
1 changed files with 2 additions and 0 deletions

View File

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