diff options
author | BonfaceKilz | 2021-06-02 14:48:00 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-06-07 18:43:44 +0300 |
commit | 65a00625336959e8bb4e84c35d69aa869b7c6c6a (patch) | |
tree | d35d3c540f4983aad4a0612b87300e6501909665 | |
parent | 4528530c84bd5248c80d4b82bf3b4b8ed6cbe396 (diff) | |
download | genenetwork2-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.py | 4 |
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", |