mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Updated documentation
Contributes to CURA-6096
This commit is contained in:
parent
7aa08d4acd
commit
f80e1ec279
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,14 @@ class QualityDatabaseHandler(DatabaseMetadataContainerController):
|
|||
self.container_type = InstanceContainer
|
||||
|
||||
def groomMetadata(self, metadata: metadata_type) -> metadata_type:
|
||||
"""
|
||||
Ensures that the metadata is in the order of the field keys and has the right size.
|
||||
if the metadata doesn't contains a key which is stored in the DB it will add it as
|
||||
an empty string. Key, value pairs that are not stored in the DB are dropped.
|
||||
If the `global_quality` isn't set it well default to 'False'
|
||||
|
||||
:param metadata: The container metadata
|
||||
"""
|
||||
if "global_quality" not in metadata:
|
||||
metadata["global_quality"] = "False"
|
||||
return super().groomMetadata(metadata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue