Add accumulator retake workflow restore

This commit is contained in:
2026-06-28 10:27:05 +02:00
parent f681fe2949
commit d937c219ee
5 changed files with 158 additions and 22 deletions
+11
View File
@@ -99,6 +99,7 @@ try:
accumulator_delete_payload,
accumulator_list_payload,
accumulator_move_payload,
accumulator_retake_payload,
accumulator_save_payload,
profile_save_cached_payload,
)
@@ -155,6 +156,7 @@ except ImportError:
accumulator_delete_payload,
accumulator_list_payload,
accumulator_move_payload,
accumulator_retake_payload,
accumulator_save_payload,
profile_save_cached_payload,
)
@@ -206,6 +208,15 @@ if PromptServer is not None and web is not None:
except Exception as exc:
return web.json_response({"error": str(exc)}, status=400)
@PromptServer.instance.routes.post("/sxcp/accumulator/retake")
async def sxcp_accumulator_retake(request):
try:
payload = await request.json()
result = accumulator_retake_payload(payload)
return web.json_response(result)
except Exception as exc:
return web.json_response({"error": str(exc)}, status=400)
NODE_CLASS_MAPPINGS = {}
NODE_CLASS_MAPPINGS.update(BUILDER_NODE_CLASS_MAPPINGS)