Documented SockJS interface, deprecated /api/state
This commit is contained in:
1 parent
587053b26c
commit
522eb40808
14 files changed
+490
-355
No files matched your search
@@ -38,10 +38,7 @@ def printerState():
|
||||
# add state information
|
||||
if not "state" in excludes:
|
||||
state = printer.getCurrentData()["state"]
|
||||
result.update({"state": {
|
||||
"text": state["stateString"],
|
||||
"flags": state["flags"]
|
||||
}})
|
||||
result.update({"state": state})
|
||||
|
||||
return jsonify(result)
|
||||
|
||||
|
||||
Reference in new issue
Block a user