Skip to content

Commit 97a8475

Browse files
committed
feat: revert disabling persistent style sorting, code cleanup
1 parent 033cb90 commit 97a8475

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

modules/meta_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import fooocus_version
1010
import modules.config
1111
import modules.sdxl_styles
12-
from modules import hash_cache
1312
from modules.flags import MetadataScheme, Performance, Steps
1413
from modules.flags import SAMPLERS, CIVITAI_NO_KARRAS
1514
from modules.hash_cache import sha256_from_cache

modules/style_sorter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@ def sort_styles(selected):
3737
global all_styles
3838
unselected = [y for y in all_styles if y not in selected]
3939
sorted_styles = selected + unselected
40-
"""
4140
try:
4241
with open('sorted_styles.json', 'wt', encoding='utf-8') as fp:
4342
json.dump(sorted_styles, fp, indent=4)
4443
except Exception as e:
4544
print('Write style sorting failed.')
4645
print(e)
4746
all_styles = sorted_styles
48-
"""
4947
return gr.CheckboxGroup.update(choices=sorted_styles)
5048

5149

0 commit comments

Comments
 (0)