mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Include organization id and type of enterprise plan in slice data
CURA-7717
This commit is contained in:
parent
602e09e8af
commit
ceda3e70bd
4 changed files with 35 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Copyright (c) 2020 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import json
|
||||
|
@ -116,6 +116,7 @@ class SliceInfo(QObject, Extension):
|
|||
|
||||
machine_manager = self._application.getMachineManager()
|
||||
print_information = self._application.getPrintInformation()
|
||||
user_profile = self._application.getCuraAPI().account.userProfile
|
||||
|
||||
global_stack = machine_manager.activeMachine
|
||||
|
||||
|
@ -124,6 +125,8 @@ class SliceInfo(QObject, Extension):
|
|||
data["schema_version"] = 0
|
||||
data["cura_version"] = self._application.getVersion()
|
||||
data["cura_build_type"] = ApplicationMetadata.CuraBuildType
|
||||
data["enterprise_plan"] = user_profile.get("enterprise_plan", "") if user_profile else ""
|
||||
data["organization_id"] = user_profile.get("organization_id", "") if user_profile else ""
|
||||
|
||||
active_mode = self._application.getPreferences().getValue("cura/active_mode")
|
||||
if active_mode == 0:
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
<b>Machine Type:</b> Ultimaker S5<br/>
|
||||
<b>Intent Profile:</b> Default<br/>
|
||||
<b>Quality Profile:</b> Fast<br/>
|
||||
<b>Using Custom Settings:</b> No
|
||||
<b>Using Custom Settings:</b> No<br/>
|
||||
<b>Enterprise Plan:</b> Essentials<br/>
|
||||
<b>Organization ID:</b> Ultimaker B.V.
|
||||
|
||||
<h3>Extruder 1:</h3>
|
||||
<ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue