From 9f7fc7344128f10881b330f936279ed4ff889485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 25 Nov 2013 16:54:44 +0100 Subject: [PATCH] data["print"] is now a boolean, so we don't need to check against valid_boolean_trues anymore but can use it directly instead Fixes #317 --- src/octoprint/server/ajax/gcodefiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/ajax/gcodefiles.py b/src/octoprint/server/ajax/gcodefiles.py index df1622ec..ccc45988 100644 --- a/src/octoprint/server/ajax/gcodefiles.py +++ b/src/octoprint/server/ajax/gcodefiles.py @@ -141,7 +141,7 @@ def gcodeFileCommand(filename, target): if command == "load": # selects/loads a file printAfterLoading = False - if "print" in data.keys() and data["print"] in valid_boolean_trues: + if "print" in data.keys() and data["print"]: printAfterLoading = True sd = False