feat: get_paper_meta_from_openalex 可触发自己
This commit is contained in:
parent
764650275f
commit
07a260136b
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue