Commit 29e13867 authored by Sakura-Luna's avatar Sakura-Luna

Revert "Refresh bug fix"

This reverts commit eff00413.
parent eff00413
...@@ -181,8 +181,7 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s ...@@ -181,8 +181,7 @@ def img2img(id_task: str, mode: int, prompt: str, negative_prompt: str, prompt_s
print(generation_info_js) print(generation_info_js)
for img in processed.images: for img in processed.images:
if hasattr(img, 'already_saved_as'): img.already_saved_as += f'?{int(time())}'
img.already_saved_as += f'?{int(time())}'
if opts.do_not_show_images: if opts.do_not_show_images:
processed.images = [] processed.images = []
......
...@@ -65,8 +65,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step ...@@ -65,8 +65,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step
print(generation_info_js) print(generation_info_js)
for img in processed.images: for img in processed.images:
if hasattr(img, 'already_saved_as'): img.already_saved_as += f'?{int(time())}'
img.already_saved_as += f'?{int(time())}'
if opts.do_not_show_images: if opts.do_not_show_images:
processed.images = [] processed.images = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment