mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 01:57:04 +08:00
scanner.py - sort github-stat
update DB
This commit is contained in:
parent
cbb5b5acbd
commit
c519d910d9
6054
github-stats.json
6054
github-stats.json
File diff suppressed because it is too large
Load Diff
@ -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}.")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user