scanner.py - sort github-stat

update DB
This commit is contained in:
Dr.Lt.Data 2024-05-18 01:15:48 +09:00
parent cbb5b5acbd
commit c519d910d9
2 changed files with 3028 additions and 3031 deletions

File diff suppressed because it is too large Load Diff

View File

@ -278,6 +278,9 @@ def update_custom_nodes():
if is_rate_limit_exceeded():
return
if 'github.com' not in url:
return None
print('.', end="")
sys.stdout.flush()
try:
@ -342,6 +345,8 @@ def update_custom_nodes():
if "cached_time" in v:
del v["cached_time"]
github_stats = dict(sorted(github_stats.items()))
json.dump(github_stats, file, ensure_ascii=False, indent=4)
print(f"Successfully written to {GITHUB_STATS_FILENAME}.")