diff options
| author | Yuren Hao <97327730+YurenHao0426@users.noreply.github.com> | 2025-04-13 21:52:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 21:52:59 -0700 |
| commit | 43c2ed0dfbf4d8ce7c9dcadf9515334f6a2b4f57 (patch) | |
| tree | e17239010841aacdb718b3c3619e7a5382e989f7 /scripts | |
| parent | fe6950a7078c8b78fcc05f5eff6bd64bf6cc71fa (diff) | |
Update fetch_papers.py
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/fetch_papers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/fetch_papers.py b/scripts/fetch_papers.py index 2c7d177..9db3d79 100644 --- a/scripts/fetch_papers.py +++ b/scripts/fetch_papers.py @@ -142,10 +142,14 @@ def main(): days = 1 papers = fetch_papers_combined(days=days) + print(f"[FINAL RESULT] Total papers matched: {len(papers)}") # <--- 添加此行 + github_token = os.getenv("TARGET_REPO_TOKEN") target_repo_name = os.getenv("TARGET_REPO_NAME") if github_token and target_repo_name and papers: update_readme_in_repo(papers, github_token, target_repo_name) + else: + print("[INFO] No matched papers or missing GitHub credentials.") if __name__ == "__main__": main() |
