mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-08-08 06:50:15 -03:00
feat(ui): add seeded random sort option to model pages (#1049)
This commit is contained in:
@@ -183,7 +183,7 @@ class FakeCache:
|
||||
def __init__(self, items):
|
||||
self.items = list(items)
|
||||
|
||||
async def get_sorted_data(self, sort_key, order):
|
||||
async def get_sorted_data(self, sort_key, order, seed=None):
|
||||
if sort_key == "name":
|
||||
data = sorted(self.items, key=lambda x: x["model_name"].lower())
|
||||
if order == "desc":
|
||||
|
||||
Reference in New Issue
Block a user