aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorzsloan2022-10-11 23:26:20 +0000
committerzsloan2022-10-12 18:15:58 +0000
commit2975110c785646c771f648523b918f22f02b44d3 (patch)
tree1a8a3c0bdaf9a4415472080a3a659995f81482f2 /wqflask/utility
parent9940cbf9a10437e1932d08c355c4187dabb1eb51 (diff)
downloadgenenetwork2-2975110c785646c771f648523b918f22f02b44d3.tar.gz
Account for empty strings in get_string function
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/type_checking.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/type_checking.py b/wqflask/utility/type_checking.py
index 00f14ba9..5e98f4ae 100644
--- a/wqflask/utility/type_checking.py
+++ b/wqflask/utility/type_checking.py
@@ -42,6 +42,6 @@ def get_int(vars_obj, name, default=None):
def get_string(vars_obj, name, default=None):
if name in vars_obj:
- if not vars_obj[name] is None:
+ if not vars_obj[name] is None and not vars_obj[name] == "":
return str(vars_obj[name])
return default