diff options
author | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-05-01 15:56:42 +0200 |
---|---|---|
committer | Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> | 2021-05-01 15:56:42 +0200 |
commit | d5be03206a83c09751d9c9bc73e0ad960d0dc487 (patch) | |
tree | 9ea2fad0837d7e8bc26eca220e6886c1ac868bef /main.py | |
parent | 53e6b03b8f68b85c10a2c7c4412a792b5bd4755d (diff) | |
download | justice-d5be03206a83c09751d9c9bc73e0ad960d0dc487.tar.gz |
update search by legal persons in a role
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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') |