diff options
author | zsloan | 2022-10-11 23:26:20 +0000 |
---|---|---|
committer | zsloan | 2022-10-12 18:15:58 +0000 |
commit | 2975110c785646c771f648523b918f22f02b44d3 (patch) | |
tree | 1a8a3c0bdaf9a4415472080a3a659995f81482f2 | |
parent | 9940cbf9a10437e1932d08c355c4187dabb1eb51 (diff) | |
download | genenetwork2-2975110c785646c771f648523b918f22f02b44d3.tar.gz |
Account for empty strings in get_string function
-rw-r--r-- | wqflask/utility/type_checking.py | 2 |
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 |