Hopefully fixed the issue where the /printer/... part of the api wouldn't be loaded
I'm still not happy with that circular import stuff I'm currently doing... there must be a better way to better split stuff built with flask? To investigate...
This commit is contained in:
1 parent
538338abfe
commit
a0374cb4ea
2 files changed
+11
-10
No files matched your search
@@ -5,7 +5,6 @@ __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agp
|
||||
from flask import request, jsonify, make_response
|
||||
|
||||
from octoprint.settings import settings
|
||||
from octoprint.printer import getConnectionOptions
|
||||
from octoprint.server import printer, restricted_access, NO_CONTENT
|
||||
from octoprint.server.api import api
|
||||
import octoprint.util as util
|
||||
@@ -189,6 +188,7 @@ def sdCommand():
|
||||
|
||||
return NO_CONTENT
|
||||
|
||||
|
||||
@api.route("/printer/sd", methods=["GET"])
|
||||
def sdState():
|
||||
if not settings().getBoolean(["feature", "sdSupport"]):
|
||||
|
||||
Reference in new issue
Block a user