From 7bc03fa6c27adc2ddbf5e8f106029abc1ab6e610 Mon Sep 17 00:00:00 2001 From: Dobin Date: Wed, 3 Apr 2024 06:42:30 +0100 Subject: [PATCH] fix: ui: inject mode --- app/templates/project.html | 4 ++-- app/templates/project_add_get.html | 2 +- app/views_project.py | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/templates/project.html b/app/templates/project.html index 2c47ea9..5458331 100644 --- a/app/templates/project.html +++ b/app/templates/project.html @@ -91,10 +91,10 @@ {% endfor %} - {% for name, value in injectstyles %} {% endfor %} diff --git a/app/templates/project_add_get.html b/app/templates/project_add_get.html index 296df01..b9972ec 100644 --- a/app/templates/project_add_get.html +++ b/app/templates/project_add_get.html @@ -58,7 +58,7 @@ {% endfor %} - {% for name, value in injectstyles %} {% endfor %} diff --git a/app/views_project.py b/app/views_project.py index 5113cbf..0474d5c 100644 --- a/app/views_project.py +++ b/app/views_project.py @@ -112,6 +112,9 @@ def add_project(): source_style = request.form['source_style'] settings.source_style = SourceStyle[source_style] + inject_mode = request.form['inject_mode'] + settings.inject_mode = InjectStyle[inject_mode] + alloc_style = request.form['alloc_style'] settings.alloc_style = AllocStyle[alloc_style]