diff options
-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", |