aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/_app.py
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-18 19:18:00 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-09 13:50:35 +0200
commit12ff72506af9b3c8cb1ce604d86232600a26e2c2 (patch)
tree456cfda6465679c4356c571075471a6e95432286 /src/hydrilla/proxy/web_ui/_app.py
parent46ac94463bf42c6a071c258a37b2a58e88e0dfaa (diff)
downloadhaketilo-hydrilla-12ff72506af9b3c8cb1ce604d86232600a26e2c2.tar.gz
haketilo-hydrilla-12ff72506af9b3c8cb1ce604d86232600a26e2c2.zip
allow adding, removing and altering repositories
This commit also temporarily breaks package import from files :/
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