diff options
author | BonfaceKilz | 2022-05-24 12:52:44 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-05-27 15:17:52 +0300 |
commit | 16c2ab05e57559ce66b08c59bbb2edd073f77849 (patch) | |
tree | 4d21c81ac3d0ce4fa711ed62f448380c58e8c21e /wqflask | |
parent | cdd46d6134b73ba729878c07c6f7a82a724a9be8 (diff) | |
download | genenetwork2-16c2ab05e57559ce66b08c59bbb2edd073f77849.tar.gz |
Strip data before storing it
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 2 |
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", |