aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2021-04-29 11:49:42 +0300
committerBonfaceKilz2021-04-29 11:49:42 +0300
commit90a6a950fba0bb463cff9669f04a87cab8efb36c (patch)
tree245cba990d794b9f83414fb0b414dcf13386c4e4 /wqflask
parenta68795a639a731e2bdae0a977bccb01f291fc9f7 (diff)
downloadgenenetwork2-90a6a950fba0bb463cff9669f04a87cab8efb36c.tar.gz
wqflask: views: Replace dict de-structuring with kw arguments
* wqflask/wqflask/views.py (submit_trait_form): Use kw arguments when passing variables to the template. This is more readable.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 28ab630f..38c56b71 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -394,9 +394,9 @@ def submit_trait_form():
species_and_groups = get_species_groups()
return render_template(
"submit_trait.html",
- **{'species_and_groups': species_and_groups,
- 'gn_server_url': GN_SERVER_URL,
- 'version': GN_VERSION})
+ species_and_groups=species_and_groups,
+ gn_server_url=GN_SERVER_URL,
+ version=GN_VERSION)
@app.route("/create_temp_trait", methods=('POST',))