aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-05-24 12:52:44 +0300
committerBonfaceKilz2022-05-27 15:17:52 +0300
commit16c2ab05e57559ce66b08c59bbb2edd073f77849 (patch)
tree4d21c81ac3d0ce4fa711ed62f448380c58e8c21e /wqflask
parentcdd46d6134b73ba729878c07c6f7a82a724a9be8 (diff)
downloadgenenetwork2-16c2ab05e57559ce66b08c59bbb2edd073f77849.tar.gz
Strip data before storing it
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 74f1cd15..1f86eaa9 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -830,7 +830,7 @@ def approve_case_attribute_data():
"INSERT INTO CaseAttribute "
"(Name, Description) VALUES "
"(%s, %s)",
- (data.get("name"), data.get("description"),))
+ (data.get("name").strip(), data.get("description").strip(),))
cursor.execute(
"UPDATE caseattributes_audit SET "
"status = 'approved' WHERE id = %s",