diff options
author | zsloan | 2021-01-06 11:53:44 -0600 |
---|---|---|
committer | zsloan | 2021-01-06 11:53:44 -0600 |
commit | 0d96ca92fb45d8bb2a6990f7d830fa9fb8315b0a (patch) | |
tree | 97b813f99101d138ec180977948bde54d1edd324 /wqflask/utility | |
parent | f617bca3f5298454f8944205f84ae77e0c59ca4b (diff) | |
parent | 03e2a259fca3d43f94b39ba024b2504466606223 (diff) | |
download | genenetwork2-0d96ca92fb45d8bb2a6990f7d830fa9fb8315b0a.tar.gz |
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into feature/pass_sample_vals_as_json
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/type_checking.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/wqflask/utility/type_checking.py b/wqflask/utility/type_checking.py index f15b17e2..6b029317 100644 --- a/wqflask/utility/type_checking.py +++ b/wqflask/utility/type_checking.py @@ -23,20 +23,20 @@ def is_str(value): except: return False -def get_float(vars,name,default=None): - if name in vars: - if is_float(vars[name]): - return float(vars[name]) +def get_float(vars_obj,name,default=None): + if name in vars_obj: + if is_float(vars_obj[name]): + return float(vars_obj[name]) return default -def get_int(vars,name,default=None): - if name in vars: - if is_int(vars[name]): - return float(vars[name]) +def get_int(vars_obj,name,default=None): + if name in vars_obj: + if is_int(vars_obj[name]): + return float(vars_obj[name]) return default -def get_string(vars,name,default=None): - if name in vars: - if not vars[name] is None: - return str(vars[name]) +def get_string(vars_obj,name,default=None): + if name in vars_obj: + if not vars_obj[name] is None: + return str(vars_obj[name]) return default |