added set entry endpoint

This commit is contained in:
2026-06-03 22:57:47 +02:00
parent 3e35b70a5e
commit 7823abaea7
+8
View File
@@ -51,4 +51,12 @@ def append_run(beamline: Beamline, pgroup: PGroup, run: int, row: dict[str, Any]
return res
@router.put("/pgroups/{pgroup}/runs/{run}/entries/{entry}")
def set_entry(beamline: Beamline, pgroup: PGroup, run: int, entry: str, value: Any):
adb.get(beamline).update_cell(pgroup, run, entry, value)
for grid in grids[pgroup]:
grid.set_cell(run, entry, value)