extract_metadata: assign correct data parameter
This fix will now correctly parse the used filament from g-code generated by ideaMaker. The used filament is located in the footer of the g-code file. Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
parent
4d1a2668f5
commit
dae0f05378
|
@ -521,7 +521,7 @@ class IdeaMaker(BaseSlicer):
|
||||||
|
|
||||||
def parse_filament_total(self):
|
def parse_filament_total(self):
|
||||||
filament = _regex_find_floats(
|
filament = _regex_find_floats(
|
||||||
r";Material.\d\sUsed:.*", self.header_data, strict=True)
|
r";Material.\d\sUsed:.*", self.footer_data, strict=True)
|
||||||
if filament:
|
if filament:
|
||||||
return sum(filament)
|
return sum(filament)
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue