Browse Source

scanner.py - sort github-stat

update DB
pull/693/head
Dr.Lt.Data 6 months ago
parent
commit
c519d910d9
  1. 4860
      github-stats.json
  2. 5
      scanner.py

4860
github-stats.json

File diff suppressed because it is too large Load Diff

5
scanner.py

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

Loading…
Cancel
Save