Fix status request for Ultimaker 2+ Connect

CURA-8463
This commit is contained in:
Jaime van Kessel 2022-08-30 16:42:15 +02:00
parent e2ba110cf7
commit feadbf04da
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -1,6 +1,7 @@
# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
import json
import urllib.parse
from json import JSONDecodeError
from time import time
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(" ", " ")
machine_type = machine_type.title()
machine_type = urllib.parse.quote_plus(machine_type)
url = f"{self.CLUSTER_API_ROOT}/clusters?machine_variant={machine_type}"
self._http.get(url,
scope=self._scope,