mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-11 21:52:35 +08:00
Bypass ComfyUI version check when in electron env
This commit is contained in:
parent
65a4d55a8a
commit
8458fdd026
@ -82,6 +82,7 @@ comfy_ui_required_commit_datetime = datetime(2024, 1, 24, 0, 0, 0)
|
||||
comfy_ui_revision = "Unknown"
|
||||
comfy_ui_commit_datetime = datetime(1900, 1, 1, 0, 0, 0)
|
||||
|
||||
is_electron = os.environ.get("ORIGINAL_XDG_CURRENT_DESKTOP") != None
|
||||
|
||||
cache_lock = threading.Lock()
|
||||
|
||||
|
||||
@ -1219,7 +1219,9 @@ async def get_notice(request):
|
||||
markdown_content = add_target_blank(markdown_content)
|
||||
|
||||
try:
|
||||
if core.comfy_ui_commit_datetime == datetime(1900, 1, 1, 0, 0, 0):
|
||||
if core.is_electron:
|
||||
pass
|
||||
elif core.comfy_ui_commit_datetime == datetime(1900, 1, 1, 0, 0, 0):
|
||||
markdown_content = f'<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI isn\'t git repo.</P>' + markdown_content
|
||||
elif core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():
|
||||
markdown_content = f'<P style="text-align: center; color:red; background-color:white; font-weight:bold">Your ComfyUI is too OUTDATED!!!</P>' + markdown_content
|
||||
|
||||
Loading…
Reference in New Issue
Block a user