Refactor configuration loading for normalize_timespan_threshold_hours

This commit is contained in:
Sean Whalen
2025-11-30 16:16:32 -05:00
parent 2785e3df34
commit a72d08ceb7
+4 -4
View File
@@ -678,10 +678,10 @@ def _main():
general_config = config["general"]
if "silent" in general_config:
opts.silent = general_config.getboolean("silent")
if "normalize_timespan_threshold_hours" in general_config:
opts.normalize_timespan_threshold_hours = general_config.getfloat(
"normalize_timespan_threshold_hours"
)
if "normalize_timespan_threshold_hours" in general_config:
opts.normalize_timespan_threshold_hours = general_config.getfloat(
"normalize_timespan_threshold_hours"
)
if "index_prefix_domain_map" in general_config:
with open(general_config["index_prefix_domain_map"]) as f:
index_prefix_domain_map = yaml.safe_load(f)