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

@@ -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