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

Function getPrinterFlowCommand

src/astroprint/api/printer.py:262–272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260
261@api.route("/printer/printing-flow", methods=["GET"])
262def getPrinterFlowCommand():
263 pm = printerManager()
264
265 if not pm.isOperational():
266 return make_response("Printer is not operational", 409)
267
268 result = {}
269
270 result['flow'] = int(pm.getPrintingFlow())
271
272 return jsonify(result)
273
274##~~ Print head
275

Callers

nothing calls this directly

Calls 3

printerManagerFunction · 0.90
isOperationalMethod · 0.45
getPrintingFlowMethod · 0.45

Tested by

no test coverage detected