Update __init__.py

This commit is contained in:
LAOGOU
2025-02-01 18:07:28 +08:00
committed by GitHub
parent bad19b6f64
commit 7e7ef9be41
+3
View File
@@ -33,8 +33,11 @@ async def window_closed(request):
try:
data = await request.json()
node_id = data.get("node_id")
original_image = data.get("original_image")
if node_id:
if original_image:
image_cache[node_id] = original_image
if node_id in event_dict:
event_dict[node_id].set()
return web.Response(text=json.dumps({"status": "success"}))