Match on strings for metadata

It doesn't automatically cast these in the query.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-12 17:08:58 +02:00
parent 3ffffad1ed
commit 2b6a82ecf1
No known key found for this signature in database
GPG key ID: 68F39EA88EEED5FF

View file

@ -62,8 +62,8 @@ class UploadMaterialsJob(Job):
def run(self):
self._printer_metadata = CuraContainerRegistry.getInstance().findContainerStacksMetadata(
type = "machine",
connection_type = 3, # Only cloud printers.
is_online = True, # Only online printers. Otherwise the server gives an error.
connection_type = "3", # Only cloud printers.
is_online = "True", # Only online printers. Otherwise the server gives an error.
host_guid = "*", # Required metadata field. Otherwise we get a KeyError.
um_cloud_cluster_id = "*" # Required metadata field. Otherwise we get a KeyError.
)