mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-23 10:03:36 +08:00
Removed trailing whitespace
This commit is contained in:
parent
bc5932daaf
commit
9ef776b689
12
server.py
12
server.py
@ -405,15 +405,15 @@ class PromptServer():
|
|||||||
if overwrite is not None and (overwrite == "true" or overwrite == "1"):
|
if overwrite is not None and (overwrite == "true" or overwrite == "1"):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
# Get uploaded file size once
|
# Get uploaded file size once
|
||||||
image.file.seek(0, 2) # Seek to end
|
image.file.seek(0, 2) # Seek to end
|
||||||
uploaded_size = image.file.tell()
|
uploaded_size = image.file.tell()
|
||||||
image.file.seek(0) # Reset to beginning
|
image.file.seek(0) # Reset to beginning
|
||||||
|
|
||||||
i = 1
|
i = 1
|
||||||
while os.path.exists(filepath):
|
while os.path.exists(filepath):
|
||||||
# Quick size comparison first
|
# Quick size comparison first
|
||||||
existing_size = os.path.getsize(filepath)
|
existing_size = os.path.getsize(filepath)
|
||||||
if existing_size == uploaded_size:
|
if existing_size == uploaded_size:
|
||||||
if compare_image_hash(filepath, image): #compare hash to prevent saving of duplicates with same name, fix for #3465
|
if compare_image_hash(filepath, image): #compare hash to prevent saving of duplicates with same name, fix for #3465
|
||||||
image_is_duplicate = True
|
image_is_duplicate = True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user