Send None instead of '' if no organisation.

part of CURA-7717
This commit is contained in:
Remco Burema 2020-10-16 13:00:12 +02:00
parent 259d0c0e2d
commit f6bf21c185
No known key found for this signature in database
GPG key ID: 215C49431D43F98C

View file

@ -125,7 +125,7 @@ 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", "") if user_profile else ""
data["organization_id"] = user_profile.get("organization_id", None) if user_profile else None
data["subscriptions"] = user_profile.get("subscriptions", []) if user_profile else []
active_mode = self._application.getPreferences().getValue("cura/active_mode")