File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2020from paho .mqtt .enums import CallbackAPIVersion
2121from pioreactor .config import config as pioreactor_config
2222from pioreactor .config import get_leader_hostname
23- from pioreactor .plugin_management import get_plugins
23+ from pioreactor .plugin_management import load_plugins
2424from pioreactor .whoami import am_I_leader
2525from pioreactor .whoami import get_unit_name
2626from pioreactor .whoami import UNIVERSAL_EXPERIMENT
3232HOSTNAME = get_unit_name ()
3333NAME = f"pioreactorui-{ HOSTNAME } "
3434
35+ # load plugins
36+ load_plugins ()
37+
3538
3639# set up logging
3740logger = logging .getLogger (NAME )
@@ -117,8 +120,6 @@ def handle_server_error(e):
117120 app .json = MsgspecJsonProvider (app )
118121 app .get_json = app .json .loads
119122
120- get_plugins ()
121-
122123 return app
123124
124125
Original file line number Diff line number Diff line change 4343from .utils import create_task_response
4444from pioreactorui import structs
4545
46- AllCalibrations = subclass_union (CalibrationBase )
4746
47+ AllCalibrations = subclass_union (CalibrationBase )
4848
4949unit_api = Blueprint ("unit_api" , __name__ , url_prefix = "/unit_api" )
5050
You can’t perform that action at this time.
0 commit comments