mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 10:02:28 +08:00
update scanner.py
This commit is contained in:
parent
ed1e399a56
commit
89c7b960fb
@ -13,7 +13,7 @@ builtin_nodes = set()
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from github import Github
|
from github import Github, Auth
|
||||||
|
|
||||||
|
|
||||||
def download_url(url, dest_folder, filename=None):
|
def download_url(url, dest_folder, filename=None):
|
||||||
@ -53,7 +53,8 @@ skip_update = '--skip-update' in sys.argv or '--skip-all' in sys.argv
|
|||||||
skip_stat_update = '--skip-stat-update' in sys.argv or '--skip-all' in sys.argv
|
skip_stat_update = '--skip-stat-update' in sys.argv or '--skip-all' in sys.argv
|
||||||
|
|
||||||
if not skip_stat_update:
|
if not skip_stat_update:
|
||||||
g = Github(os.environ.get('GITHUB_TOKEN'))
|
auth = Auth.Token(os.environ.get('GITHUB_TOKEN'))
|
||||||
|
g = Github(auth=auth)
|
||||||
else:
|
else:
|
||||||
g = None
|
g = None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user