Skip to content

Commit

Permalink
add consistency to tracking varible use
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-weirather committed Sep 17, 2024
1 parent 1a3778d commit c847769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfy_cli/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit c847769

Please sign in to comment.