From c8477693144ae962d3b90a1fe79b64439674b96b Mon Sep 17 00:00:00 2001 From: Jason L Weirather Date: Tue, 17 Sep 2024 19:52:57 -0400 Subject: [PATCH] add consistency to tracking varible use --- comfy_cli/tracking.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_cli/tracking.py b/comfy_cli/tracking.py index aa0304e..b8830d8 100644 --- a/comfy_cli/tracking.py +++ b/comfy_cli/tracking.py @@ -81,7 +81,7 @@ def wrapper(*args, **kwargs): def prompt_tracking_consent(skip_prompt: bool = False, default_value: bool = False): - tracking_enabled = config_manager.get(constants.CONFIG_KEY_ENABLE_TRACKING) + tracking_enabled = config_manager.get(constants.CONFIG_KEY_ENABLE_TRACKING, type_cast=bool) if tracking_enabled is not None: return @@ -97,7 +97,7 @@ def init_tracking(enable_tracking: bool): Initialize the tracking system by setting the user identifier and tracking enabled status. """ logging.debug(f"Initializing tracking with enable_tracking: {enable_tracking}") - config_manager.set(constants.CONFIG_KEY_ENABLE_TRACKING, str(enable_tracking)) + config_manager.set(constants.CONFIG_KEY_ENABLE_TRACKING, enable_tracking) if not enable_tracking: return