Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2021-10-12 18:08:58 +0300
committerGhostkeeper <rubend@tutanota.com>2021-10-12 18:08:58 +0300
commit2b6a82ecf1ef8000cc49846d77cc2bd8f9b0ceec (patch)
tree74f759564f5d1aeb7a735104eede07c523986faa /cura/PrinterOutput
parent3ffffad1ed4e5da7f68d1e9b8a6483e8badeeeb6 (diff)
Match on strings for metadata
It doesn't automatically cast these in the query. Contributes to issue CURA-8609.
Diffstat (limited to 'cura/PrinterOutput')
-rw-r--r--cura/PrinterOutput/UploadMaterialsJob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/PrinterOutput/UploadMaterialsJob.py b/cura/PrinterOutput/UploadMaterialsJob.py
index 6fb7dca583..994971c8d0 100644
--- a/cura/PrinterOutput/UploadMaterialsJob.py
+++ b/cura/PrinterOutput/UploadMaterialsJob.py
@@ -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.
)