diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-17 08:11:03 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-17 08:11:03 +0000 |
commit | 9d702b16f01795c3af900e0ebd70faf4b25200f6 (patch) | |
tree | d1f0689a6e27b046e34770884e02b9fbb6710d6b /modules/images_history.py | |
parent | 2a3e7ed872dc9b8da27cccc7f78df092f4a2f578 (diff) | |
download | stable-diffusion-webui-gfx803-9d702b16f01795c3af900e0ebd70faf4b25200f6.tar.gz stable-diffusion-webui-gfx803-9d702b16f01795c3af900e0ebd70faf4b25200f6.tar.bz2 stable-diffusion-webui-gfx803-9d702b16f01795c3af900e0ebd70faf4b25200f6.zip |
fix two little bug
Diffstat (limited to 'modules/images_history.py')
-rw-r--r-- | modules/images_history.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/images_history.py b/modules/images_history.py index 23045df1..1ae168ca 100644 --- a/modules/images_history.py +++ b/modules/images_history.py @@ -133,7 +133,7 @@ def archive_images(dir_name, date_to): date = sort_array[loads_num][2] filenames = [x[1] for x in sort_array] else: - date = sort_array[loads_num][2] + date = sort_array[-1][2] filenames = [x[1] for x in sort_array] filenames = [x[1] for x in sort_array if x[2]>= date] _, image_list, _, visible_num = get_recent_images(1, 0, filenames) @@ -334,6 +334,6 @@ def create_history_tabs(gr, sys_opts, run_pnginfo, switch_dict): with gr.Tab(tab): with gr.Blocks(analytics_enabled=False) as images_history_img2img: show_images_history(gr, opts, tab, run_pnginfo, switch_dict) - gradio.Checkbox(opts.images_history_reconstruct_directory, elem_id="images_history_reconstruct_directory") #, visible=False) + gradio.Checkbox(opts.images_history_reconstruct_directory, elem_id="images_history_reconstruct_directory", visible=False) return images_history |