From 0a30503fce8f7f36d3acb51a023d48753d0a3216 Mon Sep 17 00:00:00 2001 From: benne238 Date: Wed, 14 Jul 2021 13:55:47 -0400 Subject: [PATCH] Added logic to overwrite the jwt_secret_key if the variable exists in the config file under the api section --- src/webqueue2api/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webqueue2api/__init__.py b/src/webqueue2api/__init__.py index ed9c1ff..8b36081 100644 --- a/src/webqueue2api/__init__.py +++ b/src/webqueue2api/__init__.py @@ -19,4 +19,6 @@ if config_parser_object.has_section("api"): if config_parser_object.has_option("api", "environment"): - webqueue2api.api.config.environment = config_parser_object["api"]["environment"] \ No newline at end of file + webqueue2api.api.config.environment = config_parser_object["api"]["environment"] + if config_parser_object.has_option("api", "jwt_secret_key"): + webqueue2api.api.config.jwt_secret_key = config_parser_object["api"]["jwt_secret_key"] \ No newline at end of file