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>
This commit is contained in:
Don Kackman 2021-09-14 12:38:10 -05:00 committed by GitHub
parent a7e3c23277
commit 9d59079bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}