mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
feat: Add 'times used' translation keys and implement usage-based sorting in the model service.
This commit is contained in:
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "Update",
|
"update": "Update",
|
||||||
"updateAvailable": "Update verfügbar"
|
"updateAvailable": "Update verfügbar"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "Verwendungsanzahl"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "Update",
|
"update": "Update",
|
||||||
"updateAvailable": "Update available"
|
"updateAvailable": "Update available"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "Times used"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "Actualización",
|
"update": "Actualización",
|
||||||
"updateAvailable": "Actualización disponible"
|
"updateAvailable": "Actualización disponible"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "Veces usado"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "Mise à jour",
|
"update": "Mise à jour",
|
||||||
"updateAvailable": "Mise à jour disponible"
|
"updateAvailable": "Mise à jour disponible"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "Nombre d'utilisations"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "עדכון",
|
"update": "עדכון",
|
||||||
"updateAvailable": "עדכון זמין"
|
"updateAvailable": "עדכון זמין"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "מספר שימושים"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "アップデート",
|
"update": "アップデート",
|
||||||
"updateAvailable": "アップデートがあります"
|
"updateAvailable": "アップデートがあります"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "使用回数"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "업데이트",
|
"update": "업데이트",
|
||||||
"updateAvailable": "업데이트 가능"
|
"updateAvailable": "업데이트 가능"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "사용 횟수"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "Обновление",
|
"update": "Обновление",
|
||||||
"updateAvailable": "Доступно обновление"
|
"updateAvailable": "Доступно обновление"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "Количество использований"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "更新",
|
"update": "更新",
|
||||||
"updateAvailable": "有可用更新"
|
"updateAvailable": "有可用更新"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "使用次数"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -131,6 +131,9 @@
|
|||||||
"badges": {
|
"badges": {
|
||||||
"update": "更新",
|
"update": "更新",
|
||||||
"updateAvailable": "有可用更新"
|
"updateAvailable": "有可用更新"
|
||||||
|
},
|
||||||
|
"usage": {
|
||||||
|
"timesUsed": "使用次數"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"globalContextMenu": {
|
"globalContextMenu": {
|
||||||
|
|||||||
@@ -84,13 +84,11 @@ class BaseModelService(ABC):
|
|||||||
overall_start = time.perf_counter()
|
overall_start = time.perf_counter()
|
||||||
|
|
||||||
sort_params = self.cache_repository.parse_sort(sort_by)
|
sort_params = self.cache_repository.parse_sort(sort_by)
|
||||||
|
t0 = time.perf_counter()
|
||||||
if sort_params.key == 'usage':
|
if sort_params.key == 'usage':
|
||||||
sorted_data = await self._fetch_with_usage_sort(sort_params)
|
sorted_data = await self._fetch_with_usage_sort(sort_params)
|
||||||
else:
|
else:
|
||||||
sorted_data = await self.cache_repository.fetch_sorted(sort_params)
|
sorted_data = await self.cache_repository.fetch_sorted(sort_params)
|
||||||
|
|
||||||
t0 = time.perf_counter()
|
|
||||||
sorted_data = await self.cache_repository.fetch_sorted(sort_params)
|
|
||||||
fetch_duration = time.perf_counter() - t0
|
fetch_duration = time.perf_counter() - t0
|
||||||
initial_count = len(sorted_data)
|
initial_count = len(sorted_data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user