mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-09 12:09:02 +08:00
Fixed the failing tests
This commit is contained in:
parent
ca60744292
commit
f3338aa187
@ -84,8 +84,9 @@ class SendMaterialJob(Job):
|
|||||||
def _determineMaterialsToSend(local_materials: Dict[str, LocalMaterial],
|
def _determineMaterialsToSend(local_materials: Dict[str, LocalMaterial],
|
||||||
remote_materials: Dict[str, ClusterMaterial]) -> Set[str]:
|
remote_materials: Dict[str, ClusterMaterial]) -> Set[str]:
|
||||||
return {
|
return {
|
||||||
material.id for guid, material in local_materials.items()
|
material.id
|
||||||
if guid not in remote_materials or material.version > remote_materials[guid].version
|
for guid, material in local_materials.items()
|
||||||
|
if guid not in remote_materials or int(material.version) > remote_materials[guid].version
|
||||||
}
|
}
|
||||||
|
|
||||||
## Send the materials to the printer.
|
## Send the materials to the printer.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user