Browse Source

Send None instead of empty string.

Remco Burema 4 years ago
parent
commit
4866127e50
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/SliceInfoPlugin/SliceInfo.py

+ 2 - 1
plugins/SliceInfoPlugin/SliceInfo.py

@@ -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")