mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Match on strings for metadata
It doesn't automatically cast these in the query. Contributes to issue CURA-8609.
This commit is contained in:
parent
3ffffad1ed
commit
2b6a82ecf1
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ class UploadMaterialsJob(Job):
|
||||||
def run(self):
|
def run(self):
|
||||||
self._printer_metadata = CuraContainerRegistry.getInstance().findContainerStacksMetadata(
|
self._printer_metadata = CuraContainerRegistry.getInstance().findContainerStacksMetadata(
|
||||||
type = "machine",
|
type = "machine",
|
||||||
connection_type = 3, # Only cloud printers.
|
connection_type = "3", # Only cloud printers.
|
||||||
is_online = True, # Only online printers. Otherwise the server gives an error.
|
is_online = "True", # Only online printers. Otherwise the server gives an error.
|
||||||
host_guid = "*", # Required metadata field. Otherwise we get a KeyError.
|
host_guid = "*", # Required metadata field. Otherwise we get a KeyError.
|
||||||
um_cloud_cluster_id = "*" # Required metadata field. Otherwise we get a KeyError.
|
um_cloud_cluster_id = "*" # Required metadata field. Otherwise we get a KeyError.
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue