Change a few dictionary keys

This commit is contained in:
Queen Vinyl Da.i'gyu-Kazotetsu committed 2024-05-28 06:15:19 -07:00
1 parent eb62966997
commit ca83aec1e9
1 file changed
+4 -4
+4 -4
View File
@@ -92,10 +92,10 @@ class Tag():
"uid": bytes_to_hex(self.blocks[0][0:4]),
"filament_type": bytes_to_string(self.blocks[2]),
"detailed_filament_type": bytes_to_string(self.blocks[4]),
"color": "#" + bytes_to_hex(self.blocks[5][0:4]),
"weight": Unit(bytes_to_int(self.blocks[5][4:6]), "g"),
"length": Unit(bytes_to_int(self.blocks[14][4:6]), "m"),
"diameter": Unit(bytes_to_float(self.blocks[5][8:12]), "mm"),
"filament_color": "#" + bytes_to_hex(self.blocks[5][0:4]),
"spool_weight": Unit(bytes_to_int(self.blocks[5][4:6]), "g"),
"filament_length": Unit(bytes_to_int(self.blocks[14][4:6]), "m"),
"filament_diameter": Unit(bytes_to_float(self.blocks[5][8:12]), "mm"),
"spool_width": Unit(bytes_to_int(self.blocks[10][4:6]) / 100, "mm"),
"material_id": bytes_to_string(self.blocks[1][8:16]),
"variant_id": bytes_to_string(self.blocks[1][0:8]),