From b854025daa017013211d5287694886e2b800c555 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 30 Nov 2021 18:22:34 +0100 Subject: [PATCH] Fix name of compatibility category I had the nesting wrong. 'compatibilities' is the nested sub-dict in each of these compatibility entries. Contributes to issue CURA-8585. --- plugins/Marketplace/PackageModel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Marketplace/PackageModel.py b/plugins/Marketplace/PackageModel.py index 752016e12f..859c6c46f0 100644 --- a/plugins/Marketplace/PackageModel.py +++ b/plugins/Marketplace/PackageModel.py @@ -150,7 +150,7 @@ class PackageModel(QObject): :return: Whether this package provides any material that is compatible with the material station. """ for material in subdata.get("materials", []): - for compatibility in material.get("compatibilities", []): + for compatibility in material.get("compatibility", []): if compatibility.get("material_station_optimized", False): return True return False @@ -162,7 +162,7 @@ class PackageModel(QObject): :return: Whether this package provides any material that is compatible with the air manager. """ for material in subdata.get("materials", []): - for compatibility in material.get("compatibilities", []): + for compatibility in material.get("compatibility", []): if compatibility.get("air_manager_optimized", False): return True return False