Documented SockJS interface, deprecated /api/state

This commit is contained in:
Gina Häußge committed 2014-06-08 16:52:28 +02:00
1 parent 587053b26c
commit 522eb40808
14 files changed
+490 -355

No files matched your search

+1 -4
View File
@@ -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)