From e8e9e10d2608cfd553f1247723ce541741a96e06 Mon Sep 17 00:00:00 2001 From: Hannes Hansen Date: Mon, 6 May 2024 11:03:49 +0200 Subject: [PATCH] fixed bool parsing of configs --- algo/operator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algo/operator.py b/algo/operator.py index 9b0833f..ce24b71 100644 --- a/algo/operator.py +++ b/algo/operator.py @@ -30,7 +30,7 @@ LOG_PREFIX = "MAIN" def parse_bool(value): - return (value == "True" or value == "true" or value == "1" or value) + return (value == "True" or value == "true" or value == "1") class CustomConfig(Config): data_path = "/opt/data" @@ -38,7 +38,7 @@ class CustomConfig(Config): check_data_extreme_outlier: bool = True check_data_schema: bool = True check_receive_time_outlier: bool = True - check_consumption: bool = True + check_consumption: bool = False init_phase_length: float = 2 init_phase_level: str = "d"