aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-01 15:56:42 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-01 15:56:42 +0200
commitd5be03206a83c09751d9c9bc73e0ad960d0dc487 (patch)
tree9ea2fad0837d7e8bc26eca220e6886c1ac868bef /main.py
parent53e6b03b8f68b85c10a2c7c4412a792b5bd4755d (diff)
downloadjustice-d5be03206a83c09751d9c9bc73e0ad960d0dc487.tar.gz
update search by legal persons in a role
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.py b/main.py
index 27f7d98..f1c38f0 100644
--- a/main.py
+++ b/main.py
@@ -99,6 +99,8 @@ def search_results_entity(search):
entity_number_search_method = search.entity_number_search_selection.data
entity_number_actual_or_full = search.entity_name_search_actual.data
+ actual_selection = search.entity_actual_selection.data
+
qry = Pravnicka_Osoba.query
if entity_number:
@@ -122,12 +124,12 @@ def search_results_entity(search):
if not results:
flash('No results found!')
- return redirect('/osoby')
+ return redirect('/entity')
else:
table = Results(results)
table.border = True
- return render_template("results_entities.html", results=results, form=search, show_form = True)
+ return render_template("results_entities.html", results=results, form=search, show_form = True, selection_method = actual_selection)
@app.route('/results')