merged lines

This commit is contained in:
2026-06-03 10:40:37 +02:00
parent c64a9c31fb
commit e10897f5dc
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -14,9 +14,7 @@ router = APIRouter()
@router.get("/pgroups/{pgroup}")
def get_pgroup(beamline: Beamline, pgroup: PGroup, orient: str = None):
df = adb.get(beamline).get_data(pgroup)
content = df.to_json(orient=orient)
content = adb.get(beamline).get_data(pgroup).to_json(orient=orient)
return Response(content=content, media_type="application/json")
+1 -2
View File
@@ -51,8 +51,7 @@ def table_show(pgroup, beamline):
# btn.icon = "sym_o_left_panel_close" if ld.value else "sym_o_left_panel_open"
# btn = ui.button(icon="sym_o_left_panel_open", on_click=cb).props("flat dense")
df = adb.get(beamline).get_data(pgroup)
df = df.reset_index()
df = adb.get(beamline).get_data(pgroup).reset_index()
options = OPTIONS.copy()
options["context"].update(