diff options
author | Alexanderkabui | 2020-12-14 16:15:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-01-06 01:29:02 +0300 |
commit | 2030cc56db878b05e5507c7c3d5ddef39ff223cb (patch) | |
tree | 1ea05d3a0daf3eec58fad3a32a72748cc4dbfe41 /wqflask/utility | |
parent | db3170eb2fe66d8fd337803a730c18367df1b150 (diff) | |
download | genenetwork2-2030cc56db878b05e5507c7c3d5ddef39ff223cb.tar.gz |
replace vars with vars_obj which is a function name in python
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 |