fixed: a condition code wasn’t saved after editing... lol

This commit is contained in:
Dr.Lt.Data
2025-03-12 21:00:05 +09:00
parent a946338a18
commit 4566c585db
3 changed files with 3 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ import manager_downloader
from node_package import InstalledNodePackage
version_code = [3, 30, 6]
version_code = [3, 30, 7]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')

View File

@@ -1413,6 +1413,7 @@ async def check_whitelist_for_model(item):
json_obj = await core.get_data_by_mode('cache', 'model-list.json')
for x in json_obj.get('models', []):
if x['save_path'] == item['save_path'] and x['base'] == item['base'] and x['filename'] == item['filename']:
return True
return False