From 9d59079bfa0a6553b199db780af5cee716c8c41b Mon Sep 17 00:00:00 2001 From: Don Kackman Date: Tue, 14 Sep 2021 12:38:10 -0500 Subject: [PATCH] add ids to the return response of start_plotting (#7416) * add ids to the return response of start_plotting * black formatting * Update chia/daemon/server.py Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com> * Update server.py updated a comment in order to get build actions to rerun Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com> --- chia/daemon/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chia/daemon/server.py b/chia/daemon/server.py index fc9881dc011e..f2cf93ddcbca 100644 --- a/chia/daemon/server.py +++ b/chia/daemon/server.py @@ -808,8 +808,10 @@ class WebSocketServer: } return response + ids: List[str] = [] for k in range(count): id = str(uuid.uuid4()) + ids.append(id) config = { "id": id, "size": size, @@ -830,7 +832,7 @@ class WebSocketServer: # notify GUI about new plot queue item self.state_changed(service_plotter, self.prepare_plot_state_message(PlotEvent.STATE_CHANGED, id)) - # only first item can start when user selected serial plotting + # only the first item can start when user selected serial plotting can_start_serial_plotting = k == 0 and self._is_serial_plotting_running(queue) is False if parallel is True or can_start_serial_plotting: @@ -842,6 +844,7 @@ class WebSocketServer: response = { "success": True, + "ids": ids, "service_name": service_name, }