aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-02 14:48:00 +0300
committerBonfaceKilz2021-06-07 18:43:44 +0300
commit65a00625336959e8bb4e84c35d69aa869b7c6c6a (patch)
treed35d3c540f4983aad4a0612b87300e6501909665
parent4528530c84bd5248c80d4b82bf3b4b8ed6cbe396 (diff)
downloadgenenetwork2-65a00625336959e8bb4e84c35d69aa869b7c6c6a.tar.gz
wqflask: views: Remove null-check for forms
Right now, only changed data is submitted from JavaScript.
-rw-r--r--wqflask/wqflask/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 2c5b6c6b..01063ad8 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -460,9 +460,7 @@ def update_trait():
user=current_app.config.get("DB_USER"),
passwd=current_app.config.get("DB_PASS"),
host=current_app.config.get("DB_HOST"))
- # Filter out empty values
- data_ = {k: v for k, v in request.form.items() if v is not ''}
-
+ data_ = request.form.to_dict()
# Run updates:
updated_phenotypes = update(
conn, "Phenotype",