mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-09-11 11:16:01 +00:00
Apply suggestions from code review
Co-authored-by: Aarni Koskela <[email protected]>
This commit is contained in:
co-authored by
Aarni Koskela
parent
4cc0cede6d
commit
9009e25cb1
@@ -210,10 +210,12 @@ class ExtraNetworksPage:
|
||||
"""
|
||||
List of default keys used for sorting in the UI.
|
||||
"""
|
||||
pth = Path(path)
|
||||
stat = pth.stat()
|
||||
return {
|
||||
"date_created": int(Path(path).stat().st_ctime or 0),
|
||||
"date_modified": int(Path(path).stat().st_mtime or 0),
|
||||
"name": Path(path).name.lower(),
|
||||
"date_created": int(stat.st_ctime or 0),
|
||||
"date_modified": int(stat.st_mtime or 0),
|
||||
"name": pth.name.lower(),
|
||||
}
|
||||
|
||||
def find_preview(self, path):
|
||||
|
||||
Reference in New Issue
Block a user