aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/startup_config.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-07 13:06:31 +0300
committerBonfaceKilz2021-05-08 14:21:21 +0300
commit809351ae0021f48b8a138212764aab4396f564ef (patch)
treec9d0a8cf99d323e99f7dd3982c87b9e3ad237aaa /wqflask/utility/startup_config.py
parent74befd19d3d24a89d7d382625648ddade74099f7 (diff)
downloadgenenetwork2-809351ae0021f48b8a138212764aab4396f564ef.tar.gz
utility: startup_config: Use python3 f-strings
Diffstat (limited to 'wqflask/utility/startup_config.py')
-rw-r--r--wqflask/utility/startup_config.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/utility/startup_config.py b/wqflask/utility/startup_config.py
index d705a0ff..56d0af6f 100644
--- a/wqflask/utility/startup_config.py
+++ b/wqflask/utility/startup_config.py
@@ -24,16 +24,17 @@ def app_config():
app.config['TEMPLATES_AUTO_RELOAD'] = True
print("==========================================")
+
show_settings()
port = get_setting_int("SERVER_PORT")
if get_setting_bool("USE_GN_SERVER"):
- print(
- ("GN2 API server URL is [" + BLUE + get_setting("GN_SERVER_URL") + ENDC + "]"))
+ print(f"GN2 API server URL is [{BLUE}GN_SERVER_URL{ENDC}]")
import requests
page = requests.get(get_setting("GN_SERVER_URL"))
if page.status_code != 200:
raise Exception("API server not found!")
- print(("GN2 is running. Visit %s[http://localhost:%s/%s](%s)" %
- (BLUE, str(port), ENDC, get_setting("WEBSERVER_URL"))))
+ print(f"GN2 is running. Visit {BLUE}"
+ f"[http://localhost:{str(port)}/{ENDC}]"
+ f"({get_setting('WEBSERVER_URL')})")