printer profile in metadata

This commit is contained in:
Nicolas Predella 2026-05-22 16:05:49 +03:00
parent 7e642f4c32
commit f2edfe58a0

View file

@ -1192,6 +1192,11 @@ class ExecSliceNode_DatabaseSubmit(ExecSliceNode):
if weight_match:
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
is_binary = "; binary_gcode = 1" in gc