fix: 'version_str' is not defined

https://github.com/ltdrdata/ComfyUI-Manager/issues/589
This commit is contained in:
Dr.Lt.Data 2024-04-20 16:11:07 +09:00
parent e5a8f150e5
commit 63fb2c6f11
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 20, 1]
version = [2, 20, 2]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))

View File

@ -1094,7 +1094,7 @@ async def get_notice(request):
markdown_content = match.group(1)
markdown_content += f"<HR>ComfyUI: {core.comfy_ui_revision}[{comfy_ui_hash[:6]}]({core.comfy_ui_commit_datetime.date()})"
# markdown_content += f"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;()"
markdown_content += f"<BR>Manager: {version_str}"
markdown_content += f"<BR>Manager: {core.version_str}"
try:
if core.comfy_ui_required_commit_datetime.date() > core.comfy_ui_commit_datetime.date():