JFJochReceiver: Give one plot at a time

This commit is contained in:
2023-04-18 14:51:51 +02:00
parent 962edaa4ad
commit 25cb4df0bf
21 changed files with 186 additions and 152 deletions
+3 -3
View File
@@ -174,12 +174,12 @@ async def put_data_processing_settings(data: str = Body(...)):
raise HTTPException(status_code=400, detail=e.details())
@app.get("/data_processing/plots")
async def get_settings():
@app.post("/data_processing/plots")
async def get_settings(data: str = Body(...)):
try:
stub = jfjoch_pb2_grpc.gRPC_JFJochBrokerStub(channel)
return MessageToDict(
stub.GetPlots(jfjoch_pb2.Empty()), including_default_value_fields=True
stub.GetPlots(Parse(data, jfjoch_pb2.PlotRequest())), including_default_value_fields=True
)
except grpc.RpcError as e:
raise HTTPException(status_code=400, detail=e.details())