Fix setting printer type on print job

This commit is contained in:
ChrisTerBeke 2019-08-15 13:21:10 +02:00
parent e8fd013329
commit eb5e1904ab
2 changed files with 2 additions and 0 deletions

View file

@ -101,6 +101,7 @@ class ClusterPrintJobStatus(BaseModel):
extruders = [extruder.createConfigurationModel() for extruder in self.configuration or ()]
configuration = PrinterConfigurationModel()
configuration.setExtruderConfigurations(extruders)
configuration.setPrinterType(self.machine_variant)
return configuration
## Updates an UM3 print job output model based on this cloud cluster print job.

View file

@ -49,6 +49,7 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
def __init__(self, device_id: str, address: str, properties: Dict[bytes, bytes], connection_type: ConnectionType,
parent=None) -> None:
super().__init__(device_id=device_id, address=address, properties=properties, connection_type=connection_type,
parent=parent)