aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py2
-rw-r--r--wqflask/wqflask/templates/edit_phenotype.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 008489ce..501ddba0 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -834,7 +834,7 @@ def create_delta_csv(base_csv, form_data, sample_list):
for field in ["value", "error", "n_cases"]:
the_value = form_data.get(f"{field}:{sample['name']}")
if the_value:
- if is_a_number(the_value):
+ if is_a_number(the_value) or the_value.lower() == "x":
new_line_items.append(the_value)
continue
new_line_items.append(sample[field])
diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html
index 240c5e60..e8335487 100644
--- a/wqflask/wqflask/templates/edit_phenotype.html
+++ b/wqflask/wqflask/templates/edit_phenotype.html
@@ -224,6 +224,9 @@
</div>
<div style="padding-top: 20px;">
+ <p class="text-info" style="padding-left: 5em;">
+ <strong>Type "x" to delete a value.</strong>
+ </p>
<table style="width: 500px;" class="table table-hover table-striped table-bordered left-float">
<thead>
<th></th>