merged lines
This commit is contained in:
+1
-3
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user