mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-17 03:37:48 -06:00
Fix dangling close bracket
This commit is contained in:
parent
11439644c3
commit
baa7b485ef
1 changed files with 2 additions and 2 deletions
|
@ -101,8 +101,8 @@ class CloudApiClient:
|
||||||
# \param cluster_id: The ID of the cluster.
|
# \param cluster_id: The ID of the cluster.
|
||||||
# \param cluster_job_id: The ID of the print job within the cluster.
|
# \param cluster_job_id: The ID of the print job within the cluster.
|
||||||
# \param action: The name of the action to execute.
|
# \param action: The name of the action to execute.
|
||||||
def doPrintJobAction(self, cluster_id: str, cluster_job_id: str, action: str, data: Optional[Dict[str, Any]] = None
|
def doPrintJobAction(self, cluster_id: str, cluster_job_id: str, action: str,
|
||||||
) -> None:
|
data: Optional[Dict[str, Any]] = None) -> None:
|
||||||
body = json.dumps({"data": data}).encode() if data else b""
|
body = json.dumps({"data": data}).encode() if data else b""
|
||||||
url = "{}/clusters/{}/print_jobs/{}/action/{}".format(self.CLUSTER_API_ROOT, cluster_id, cluster_job_id, action)
|
url = "{}/clusters/{}/print_jobs/{}/action/{}".format(self.CLUSTER_API_ROOT, cluster_id, cluster_job_id, action)
|
||||||
self._manager.post(self._createEmptyRequest(url), body)
|
self._manager.post(self._createEmptyRequest(url), body)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue