applets: add update_dataset for dataset mods

This commit is contained in:
Florian Agbuya 2023-06-02 18:14:57 +08:00 committed by Sébastien Bourdeauducq
parent 69bf2dfb81
commit c298ec4c2e
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ class AppletIPCServer(AsyncioParentComm):
self.write_pyon({"action": "mod", "mod": mod})
elif action == "set_dataset":
await self.dataset_ctl.set(obj["key"], obj["value"], obj["persist"])
elif action == "update_dataset":
await self.dataset_ctl.update(obj["mod"])
else:
raise ValueError("unknown action in applet message")
except: