Skip to content

Commit

Permalink
Added logic to overwrite the jwt_secret_key if the variable exists in…
Browse files Browse the repository at this point in the history
… the config file under the api section
  • Loading branch information
benne238 committed Jul 14, 2021
1 parent e8115fc commit 0a30503
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webqueue2api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
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"]

0 comments on commit 0a30503

Please sign in to comment.