Skip to content

Commit b0f7c5e

Browse files
committed
Fix f-string
1 parent 756314a commit b0f7c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def clean_prompt(prompt: str) -> str:
334334
subfolder = os.path.normpath(path)
335335

336336
return {
337-
"result": (",".join(f"{Path(name.split(":")[-1]).stem + ":" if name else ""}{hash}{":" + str(weight) if weight is not None and download_civitai_data else ""}" for name, (_, weight, hash) in ({ modelname: ( ckpt_path, None, modelhash ) } | loras | embeddings | manual_entries).items()),),
337+
"result": (",".join(f"{Path(name.split(':')[-1]).stem + ':' if name else ''}{hash}{':' + str(weight) if weight is not None and download_civitai_data else ''}" for name, (_, weight, hash) in ({ modelname: ( ckpt_path, None, modelhash ) } | loras | embeddings | manual_entries).items()),),
338338
"ui": {"images": map(lambda filename: {"filename": filename, "subfolder": subfolder if subfolder != '.' else '', "type": 'output'}, filenames)},
339339
}
340340

0 commit comments

Comments
 (0)