mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat: enhance model scanning to include creator username
Updated the `ModelScanner` class to extract and format the creator username from Civitai data. This enhancement ensures that the creator information is properly included in slim model data.
This commit is contained in:
@@ -119,6 +119,12 @@ class ModelScanner:
|
||||
if value not in (None, '', []):
|
||||
slim[key] = value
|
||||
|
||||
creator = civitai.get('creator')
|
||||
if isinstance(creator, Mapping):
|
||||
username = creator.get('username')
|
||||
if username:
|
||||
slim['creator'] = {'username': username}
|
||||
|
||||
trained_words = civitai.get('trainedWords')
|
||||
if trained_words:
|
||||
slim['trainedWords'] = list(trained_words) if isinstance(trained_words, list) else trained_words
|
||||
|
||||
Reference in New Issue
Block a user