mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
Apply suggestions from code review
Co-authored-by: Aarni Koskela <akx@iki.fi>
This commit is contained in:
@@ -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