diff options
author | Frederick Muriuki Muriithi | 2022-07-25 09:03:01 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-07-25 09:03:01 +0300 |
commit | 5fa3e187687a7be6edab3b850fcd62d3635e40d4 (patch) | |
tree | 56a30265a2c3e49db95aad70ac54a298206def7c /wqflask/utility/tools.py | |
parent | 62dbbc440029efff136489f3a2d6cd8103207c05 (diff) | |
download | genenetwork2-5fa3e187687a7be6edab3b850fcd62d3635e40d4.tar.gz |
Return config in app.config or None
Update the code to return the setting already set up in the app.config
dictionary if it exists or None if it does not exist.
Diffstat (limited to 'wqflask/utility/tools.py')
-rw-r--r-- | wqflask/utility/tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index db0b4320..19bf686b 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -50,7 +50,7 @@ def get_setting(command_id, guess=None): app_set(command_id, command) return command else: - return None + return app.config.get(command_id) # ---- Check whether environment exists # print("Looking for "+command_id+"\n") |