Fix wrong location assignment for selected file

This commit is contained in:
Gina Häußge 2016-07-08 15:43:48 +02:00
parent 5bf5e336ec
commit 7909672f51

View file

@ -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()