mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-04 23:30:04 +00:00
corrected formatting
This commit is contained in:
@@ -101,10 +101,12 @@ class CreateFromHashBody(BaseModel):
|
||||
return []
|
||||
if isinstance(v, list):
|
||||
out = [str(t).strip().lower() for t in v if str(t).strip()]
|
||||
seen = set(); dedup = []
|
||||
seen = set()
|
||||
dedup = []
|
||||
for t in out:
|
||||
if t not in seen:
|
||||
seen.add(t); dedup.append(t)
|
||||
seen.add(t)
|
||||
dedup.append(t)
|
||||
return dedup
|
||||
if isinstance(v, str):
|
||||
return [t.strip().lower() for t in v.split(",") if t.strip()]
|
||||
|
||||
Reference in New Issue
Block a user