diff options
author | zsloan | 2021-01-11 13:22:48 -0600 |
---|---|---|
committer | GitHub | 2021-01-11 13:22:48 -0600 |
commit | 212a0c4bd212fd4100a2738a17ef839a67ae7959 (patch) | |
tree | f7974d4a914891458f8c3b8eeafa6c2c803d42bc /wqflask/utility | |
parent | e7324bf55b7dcfd46f7a2ab52765977fb189c26b (diff) | |
parent | 0d96ca92fb45d8bb2a6990f7d830fa9fb8315b0a (diff) | |
download | genenetwork2-212a0c4bd212fd4100a2738a17ef839a67ae7959.tar.gz |
Merge branch 'testing' into feature/add_location_type_correlation_option
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 |