From e10897f5dc1711684abd3e9e554d85ca16c118e7 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Wed, 3 Jun 2026 10:40:37 +0200 Subject: [PATCH] merged lines --- stand/api.py | 4 +--- stand/table.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/stand/api.py b/stand/api.py index 5c57c3c..2a073c2 100644 --- a/stand/api.py +++ b/stand/api.py @@ -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") diff --git a/stand/table.py b/stand/table.py index 1fe3a01..d9d0828 100644 --- a/stand/table.py +++ b/stand/table.py @@ -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(