From 7909672f512161119ba5a4da743150790c87b40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 8 Jul 2016 15:43:48 +0200 Subject: [PATCH] Fix wrong location assignment for selected file --- src/octoprint/printer/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 51bad831..fd182ed1 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -996,7 +996,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): return dict() print_job_file = selected_file.get("filename", None) - location = FileDestinations.LOCAL if selected_file.get("sd", False) else FileDestinations.SDCARD + location = FileDestinations.SDCARD if selected_file.get("sd", False) else FileDestinations.LOCAL if not print_job_file or not location: return dict()