mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
(SliceInfo) Do timestamp server-side.
part of CURA-12262
This commit is contained in:
parent
48bfed0643
commit
08f310b300
1 changed files with 0 additions and 3 deletions
|
@ -157,7 +157,6 @@ class SliceInfo(QObject, Extension):
|
|||
global_stack = machine_manager.activeMachine
|
||||
|
||||
data = dict() # The data that we're going to submit.
|
||||
data["time_stamp"] = time.time()
|
||||
data["schema_version"] = 1000
|
||||
data["cura_version"] = self._application.getVersion()
|
||||
data["cura_build_type"] = ApplicationMetadata.CuraBuildType
|
||||
|
@ -334,8 +333,6 @@ class SliceInfo(QObject, Extension):
|
|||
flat_data = dict()
|
||||
self._flattenData(data, flat_data)
|
||||
data = flat_data
|
||||
timestamp = datetime.datetime.utcfromtimestamp(float(data["time_stamp"]))
|
||||
data["timestamp"] = f"{str(timestamp)} UTC"
|
||||
|
||||
# Convert data to bytes
|
||||
binary_data = json.dumps(data).encode("utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue