2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 19:28:26 +08:00

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

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: