Send None instead of empty string.

This commit is contained in:
Remco Burema 2020-11-03 14:36:27 +01:00
parent ef7cfd846b
commit 4866127e50
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -125,7 +125,8 @@ class SliceInfo(QObject, Extension):
data["schema_version"] = 0
data["cura_version"] = self._application.getVersion()
data["cura_build_type"] = ApplicationMetadata.CuraBuildType
data["organization_id"] = user_profile.get("organization_id", None) if user_profile else None
org_id = user_profile.get("organization_id", None) if user_profile else None
data["organization_id"] = org_id if len(org_id) > 0 else None
data["subscriptions"] = user_profile.get("subscriptions", []) if user_profile else []
active_mode = self._application.getPreferences().getValue("cura/active_mode")