summaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/packages.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/packages.py')
-rw-r--r--src/hydrilla/proxy/web_ui/packages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hydrilla/proxy/web_ui/packages.py b/src/hydrilla/proxy/web_ui/packages.py
index d4146a5..336c2ce 100644
--- a/src/hydrilla/proxy/web_ui/packages.py
+++ b/src/hydrilla/proxy/web_ui/packages.py
@@ -51,10 +51,10 @@ class InvalidUploadedMalcontent(HaketiloException):
super().__init__(_('err.proxy.uploaded_malcontent_invalid'))
-bp = flask.Blueprint('load_packages', __package__)
+bp = flask.Blueprint('packages', __package__)
@bp.route('/packages/load_from_disk', methods=['GET'])
-def load_from_disk_get() -> werkzeug.Response:
+def load_from_disk() -> werkzeug.Response:
html = flask.render_template('packages__load_from_disk.html.jinja')
return flask.make_response(html, 200)
@@ -62,7 +62,7 @@ def load_from_disk_get() -> werkzeug.Response:
def load_from_disk_post() -> werkzeug.Response:
zip_file_storage = flask.request.files.get('packages_zipfile')
if zip_file_storage is None:
- return load_from_disk_get()
+ return load_from_disk()
with tempfile.TemporaryDirectory() as tmpdir_str:
tmpdir = Path(tmpdir_str)