mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Fix status request for Ultimaker 2+ Connect
CURA-8463
This commit is contained in:
parent
e2ba110cf7
commit
feadbf04da
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2019 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
import json
|
import json
|
||||||
|
import urllib.parse
|
||||||
from json import JSONDecodeError
|
from json import JSONDecodeError
|
||||||
from time import time
|
from time import time
|
||||||
from typing import Callable, List, Type, TypeVar, Union, Optional, Tuple, Dict, Any, cast
|
from typing import Callable, List, Type, TypeVar, Union, Optional, Tuple, Dict, Any, cast
|
||||||
|
@ -87,7 +88,7 @@ class CloudApiClient:
|
||||||
machine_type = machine_type.replace("ultimaker", "ultimaker ")
|
machine_type = machine_type.replace("ultimaker", "ultimaker ")
|
||||||
machine_type = machine_type.replace(" ", " ")
|
machine_type = machine_type.replace(" ", " ")
|
||||||
machine_type = machine_type.title()
|
machine_type = machine_type.title()
|
||||||
|
machine_type = urllib.parse.quote_plus(machine_type)
|
||||||
url = f"{self.CLUSTER_API_ROOT}/clusters?machine_variant={machine_type}"
|
url = f"{self.CLUSTER_API_ROOT}/clusters?machine_variant={machine_type}"
|
||||||
self._http.get(url,
|
self._http.get(url,
|
||||||
scope=self._scope,
|
scope=self._scope,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue