From 2242c4b7777eaf46bf9b2d789ee166795ad974fa Mon Sep 17 00:00:00 2001 From: jahwag Date: Sun, 22 Dec 2024 00:24:34 +0100 Subject: [PATCH] fix: upgrade command Signed-off-by: jahwag --- pyproject.toml | 2 +- src/claudesync/cli/main.py | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f2b9a8f..02177ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "claudesync" -version = "0.6.7" +version = "0.6.8" authors = [ {name = "Jahziah Wagner", email = "540380+jahwag@users.noreply.github.com"}, ] diff --git a/src/claudesync/cli/main.py b/src/claudesync/cli/main.py index ac3a477..775cde3 100644 --- a/src/claudesync/cli/main.py +++ b/src/claudesync/cli/main.py @@ -75,9 +75,6 @@ def upgrade(ctx): click.echo(f"Unable to check for the latest version: {str(e)}") click.echo("Proceeding with the upgrade process.") - session_key = config.get_session_key() - session_key_expiry = config.get("session_key_expiry") - # Upgrade ClaudeSync click.echo(f"Upgrading ClaudeSync from v{current_version} to v{latest_version}...") try: @@ -88,13 +85,6 @@ def upgrade(ctx): "Failed to upgrade ClaudeSync. Please try manually: pip install --upgrade claudesync" ) - # Preserve the session key and its expiry - if session_key and session_key_expiry: - config.set_session_key(session_key, session_key_expiry) - click.echo("Session key preserved in the new configuration.") - else: - click.echo("No valid session key found in the old configuration.") - # Inform user about the upgrade process click.echo("\nUpgrade process completed:") click.echo(