add dedup logic, remove add tag option

This commit is contained in:
Weixuan Fu
2024-04-07 21:03:02 +08:00
parent ca51caeed9
commit 2eacd98c1d
3 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -174,9 +174,10 @@ def dedupe_workflow_ids():
file_path = os.path.join(root, file)
check_and_update_workflow_id(file_path, seen_ids)
dedupe_workflow_ids()
@server.PromptServer.instance.routes.get('/workspace/deduplicate_workflow_ids')
async def deduplicate_workflow_ids(request):
dedupe_workflow_ids()
return web.json_response(text="success", content_type='application/json')
@server.PromptServer.instance.routes.post('/workspace/get_workflow_file')
async def get_workflow_file(request):
+1
View File
@@ -183,6 +183,7 @@ export default function App() {
if (latestWfID) {
loadWorkflowIDImpl(latestWfID);
}
fetch("/workspace/deduplicate_workflow_ids");
// await validateOrSaveAllJsonFileMyWorkflows();
const twoway = await userSettingsTable?.getSetting("twoWaySync");
!twoway &&
+1 -1
View File
@@ -89,7 +89,7 @@ export default function MoreActionMenu({ workflow }: Props) {
>
Duplicate
</MenuItem>
<AddTagToWorkflowPopover workflow={workflow} />
{/* <AddTagToWorkflowPopover workflow={workflow} /> */}
<Tooltip
hasArrow
label={