Skip to content

Commit 082b5d6

Browse files
pirateclaude
andcommitted
Fix NameError in list_search_commits final-cache write
Local var is final_cache (line 754) but write at line 801 referenced cache_file, which only exists in sibling list_prs_and_issues. Would crash on first non-cached run in full mode, preventing search_commits cache from ever being saved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1313d4a commit 082b5d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generate_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def query(date_filter: str) -> list[dict]:
798798
all_items.extend(items)
799799
time.sleep(0.3)
800800
CACHE_API.mkdir(parents=True, exist_ok=True)
801-
cache_file.write_text(json.dumps(all_items))
801+
final_cache.write_text(json.dumps(all_items))
802802
return all_items
803803

804804

0 commit comments

Comments
 (0)