diff options
author | Jaime van Kessel <nallath@gmail.com> | 2020-01-16 13:19:29 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2020-01-16 13:19:29 +0300 |
commit | 4e0e0c033953e97325e37495cbe717866cfb6f95 (patch) | |
tree | 619775acfa6faf1674cf3df2cb98a3386046a36c /plugins/3MFWriter | |
parent | b8dbc1d1600c72f49ac7e9f781b0f5236afee201 (diff) |
Add skipkeys flag to writing plugin metadata to workspace
CURA-6627
Diffstat (limited to 'plugins/3MFWriter')
-rw-r--r-- | plugins/3MFWriter/ThreeMFWorkspaceWriter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py index cd56e77ebd..45d9db77f6 100644 --- a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py +++ b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py @@ -89,7 +89,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter): # We have to set the compress type of each file as well (it doesn't keep the type of the entire archive) file_in_archive.compress_type = zipfile.ZIP_DEFLATED import json - archive.writestr(file_in_archive, json.dumps(metadata, separators = (", ", ": "), indent = 4)) + archive.writestr(file_in_archive, json.dumps(metadata, separators = (", ", ": "), indent = 4, skipkeys = True)) ## Helper function that writes ContainerStacks, InstanceContainers and DefinitionContainers to the archive. # \param container That follows the \type{ContainerInterface} to archive. |