aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-07-25 09:03:01 +0300
committerFrederick Muriuki Muriithi2022-07-25 09:03:01 +0300
commit5fa3e187687a7be6edab3b850fcd62d3635e40d4 (patch)
tree56a30265a2c3e49db95aad70ac54a298206def7c /wqflask
parent62dbbc440029efff136489f3a2d6cd8103207c05 (diff)
downloadgenenetwork2-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')
-rw-r--r--wqflask/utility/tools.py2
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")