Skip to content

Commit

Permalink
Logic to overwrite the queues_to_ignore if it exists in the configura…
Browse files Browse the repository at this point in the history
…tion file under the parser section
  • Loading branch information
benne238 committed Jul 14, 2021
1 parent 7dc383b commit b11d2a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webqueue2api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
if config_parser_object.has_section("parser"):
if config_parser_object.has_option("parser", "queue_directory"):
webqueue2api.parser.config.queue_directory = config_parser_object["parser"]["queue_directory"]

if config_parser_object.has_option("parser", "queues_to_ignore"):
webqueue2api.parser.config.queues_to_ignore = config_parser_object["parser"]["queues_to_ignore"]

0 comments on commit b11d2a8

Please sign in to comment.