From 97e0a8ace39afd26c5a53afacbe727ebc8f9dc0d Mon Sep 17 00:00:00 2001 From: Mikado8231 <18015877+Mikado8231@users.noreply.github.com> Date: Sun, 5 Nov 2023 21:25:16 +0100 Subject: [PATCH] [FIX] DashCustom config with super --- psa_car_controller/web/dash_custom.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/psa_car_controller/web/dash_custom.py b/psa_car_controller/web/dash_custom.py index dd72cb8..fe68f04 100644 --- a/psa_car_controller/web/dash_custom.py +++ b/psa_car_controller/web/dash_custom.py @@ -7,8 +7,9 @@ class DashCustom(Dash): self.requests_pathname_external_prefix = self.config.requests_pathname_prefix def _config(self): + config = super()._config() # pieces of config needed by the front end - config = { + config.update({ "url_base_pathname": self.config.url_base_pathname, "requests_pathname_prefix": self.requests_pathname_external_prefix, "ui": self._dev_tools.ui, @@ -16,7 +17,7 @@ class DashCustom(Dash): "show_undo_redo": self.config.show_undo_redo, "suppress_callback_exceptions": self.config.suppress_callback_exceptions, "update_title": self.config.update_title, - } + }) if self._dev_tools.hot_reload: config["hot_reload"] = { # convert from seconds to msec as used by js `setInterval`