printer profile in metadata
This commit is contained in:
parent
7e642f4c32
commit
f2edfe58a0
1 changed files with 5 additions and 0 deletions
|
|
@ -1192,6 +1192,11 @@ class ExecSliceNode_DatabaseSubmit(ExecSliceNode):
|
||||||
if weight_match:
|
if weight_match:
|
||||||
fields["Weight per print"] = int(float(weight_match.group(1)))
|
fields["Weight per print"] = int(float(weight_match.group(1)))
|
||||||
|
|
||||||
|
# 4. Profile for reference
|
||||||
|
profile_match = re.search(r"; printer_settings_id = (.*)", gc)
|
||||||
|
if profile_match:
|
||||||
|
fields["Printer Profile"] = profile_match.group(1)
|
||||||
|
|
||||||
# Detect binary trigger in gcode comments
|
# Detect binary trigger in gcode comments
|
||||||
is_binary = "; binary_gcode = 1" in gc
|
is_binary = "; binary_gcode = 1" in gc
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue