mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
Fix case where constraints is None
This commit is contained in:
parent
d2c4dd0f65
commit
aac004cd2b
@ -74,10 +74,9 @@ class ClusterPrintJobStatus(BaseModel):
|
||||
printer
|
||||
:param preview_url: URL to the preview image (same as wou;d've been included in the ufp).
|
||||
"""
|
||||
|
||||
self.assigned_to = assigned_to
|
||||
self.configuration = self.parseModels(ClusterPrintCoreConfiguration, configuration)
|
||||
self.constraints = self.parseModel(ClusterPrintJobConstraints, constraints)
|
||||
self.constraints = self.parseModel(ClusterPrintJobConstraints, constraints) if constraints else None
|
||||
self.created_at = created_at
|
||||
self.force = force
|
||||
self.last_seen = last_seen
|
||||
@ -94,7 +93,6 @@ class ClusterPrintJobStatus(BaseModel):
|
||||
self.deleted_at = deleted_at
|
||||
self.printed_on_uuid = printed_on_uuid
|
||||
self.preview_url = preview_url
|
||||
|
||||
self.configuration_changes_required = self.parseModels(ClusterPrintJobConfigurationChange,
|
||||
configuration_changes_required) \
|
||||
if configuration_changes_required else []
|
||||
|
Loading…
x
Reference in New Issue
Block a user