Fixed the failing tests

This commit is contained in:
Marijn Deé 2018-11-20 16:53:01 +01:00
parent ca60744292
commit f3338aa187

View File

@ -84,8 +84,9 @@ class SendMaterialJob(Job):
def _determineMaterialsToSend(local_materials: Dict[str, LocalMaterial],
remote_materials: Dict[str, ClusterMaterial]) -> Set[str]:
return {
material.id for guid, material in local_materials.items()
if guid not in remote_materials or material.version > remote_materials[guid].version
material.id
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.