Fix stupid identation issue

This commit is contained in:
Jaime van Kessel 2019-11-04 13:11:46 +01:00
parent e13108f267
commit ad85e29c0a
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -327,7 +327,7 @@ class VersionUpgrade41to42(VersionUpgrade):
if material_id in _creality_quality_per_material and old_quality_id in _creality_quality_per_material[material_id]:
if definition_id == "creality_cr10_extruder_0": # We can't disambiguate between Creality CR-10 and Creality-CR10S since they share the same extruder definition. Have to go by the name.
if "cr-10s" in parser["metadata"].get("machine", "Creality CR-10").lower(): # Not perfect, since the user can change this name :(
parser["containers"]["2"] = _creality_quality_per_material[material_id][old_quality_id]
parser["containers"]["2"] = _creality_quality_per_material[material_id][old_quality_id]
stack_copy = {} # type: Dict[str, str] # Make a copy so that we don't modify the dict we're iterating over.
stack_copy.update(parser["containers"])