summaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/_app.py')
-rw-r--r--src/hydrilla/proxy/web_ui/_app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hydrilla/proxy/web_ui/_app.py b/src/hydrilla/proxy/web_ui/_app.py
index d5783d1..ab15918 100644
--- a/src/hydrilla/proxy/web_ui/_app.py
+++ b/src/hydrilla/proxy/web_ui/_app.py
@@ -4,6 +4,8 @@
#
# Available under the terms of Creative Commons Zero v1.0 Universal.
+import typing as t
+
import flask
from .. import state as st
@@ -11,3 +13,6 @@ from .. import state as st
class WebUIApp(flask.Flask):
_haketilo_state: st.HaketiloState
+
+def get_haketilo_state() -> st.HaketiloState:
+ return t.cast(WebUIApp, flask.current_app)._haketilo_state