Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
adc0ea74
Commit
adc0ea74
authored
Oct 16, 2022
by
CookieHCl
Committed by
AUTOMATIC1111
Oct 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better readablity of logs
parent
c9836279
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
images_history.py
modules/images_history.py
+1
-1
ui.py
modules/ui.py
+1
-1
No files found.
modules/images_history.py
View file @
adc0ea74
...
@@ -31,7 +31,7 @@ def get_recent_images(dir_name, page_index, step, image_index, tabname):
...
@@ -31,7 +31,7 @@ def get_recent_images(dir_name, page_index, step, image_index, tabname):
image_list
=
traverse_all_files
(
dir_name
,
image_list
)
image_list
=
traverse_all_files
(
dir_name
,
image_list
)
image_list
=
sorted
(
image_list
,
key
=
lambda
file
:
-
os
.
path
.
getctime
(
os
.
path
.
join
(
dir_name
,
file
)))
image_list
=
sorted
(
image_list
,
key
=
lambda
file
:
-
os
.
path
.
getctime
(
os
.
path
.
join
(
dir_name
,
file
)))
else
:
else
:
print
(
f
"ERROR: {dir_name} is not a directory. Check the path in the settings."
,
file
=
sys
.
stderr
)
print
(
f
'ERROR: "{dir_name}" is not a directory. Check the path in the settings.'
,
file
=
sys
.
stderr
)
num
=
48
if
tabname
!=
"extras"
else
12
num
=
48
if
tabname
!=
"extras"
else
12
max_page_index
=
len
(
image_list
)
//
num
+
1
max_page_index
=
len
(
image_list
)
//
num
+
1
page_index
=
max_page_index
if
page_index
==
-
1
else
page_index
+
step
page_index
=
max_page_index
if
page_index
==
-
1
else
page_index
+
step
...
...
modules/ui.py
View file @
adc0ea74
...
@@ -1395,7 +1395,7 @@ def create_ui(wrap_gradio_gpu_call):
...
@@ -1395,7 +1395,7 @@ def create_ui(wrap_gradio_gpu_call):
def
open_folder
(
f
):
def
open_folder
(
f
):
if
not
os
.
path
.
exists
(
f
):
if
not
os
.
path
.
exists
(
f
):
print
(
f
"{f} doesn't exist. After you create an image, the folder will be created."
)
print
(
f
'Folder "{f}" does not exist. After you create an image, the folder will be created.'
)
return
return
elif
not
os
.
path
.
isdir
(
f
):
elif
not
os
.
path
.
isdir
(
f
):
print
(
f
"""
print
(
f
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment