MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / deleteTools

Function deleteTools

src/astroprint/api/printer.py:173–179  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

171@api.route("/printer/bed", methods=["GET"])
172def printerBedState():
173 def deleteTools(x):
174 data = dict(x)
175
176 for k in data.keys():
177 if k.startswith("tool"):
178 del data[k]
179 return data
180
181 return jsonify(_getTemperatureData(deleteTools))
182

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected