Consider all packages when calculating account discrepancies

Not just the user-subscribed ones

CURA-7245
This commit is contained in:
Nino van Hooff 2020-05-06 16:01:36 +02:00
parent 2ecd30d6a9
commit 3ac0e7bed9

View File

@ -75,8 +75,8 @@ class CloudPackageChecker(QObject):
Logger.log("w", "Received invalid JSON for user subscribed packages from the Web Marketplace")
def _handleCompatibilityData(self, subscribed_packages_payload: List[Dict[str, Any]]) -> None:
user_subscribed_packages = [plugin["package_id"] for plugin in subscribed_packages_payload]
user_installed_packages = self._package_manager.getUserInstalledPackages()
user_subscribed_packages = {plugin["package_id"] for plugin in subscribed_packages_payload}
user_installed_packages = self._package_manager.getAllInstalledPackageIDs()
# We need to re-evaluate the dismissed packages
# (i.e. some package might got updated to the correct SDK version in the meantime,