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], 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.