fix
Browse files914 unmodified lines91591691791891992051 unmodified lines972973974975976977914 unmodified lines# This ensures we catch spaces that were deployed in this sessionif session_token and session_token in user_sessions:session = user_sessions[session_token]deployed_spaces = session.get("deployed_spaces", [])print(f"[Deploy] Checking session for existing spaces. Found {len(deployed_spaces)} deployed spaces.")51 unmodified linesif session_token and session_token in user_sessions:if repo_id:session = user_sessions[session_token]deployed_spaces = session.get("deployed_spaces", [])print(f"[Deploy] 📝 Tracking space in session...")914 unmodified lines91591691791891992092192292392492551 unmodified lines977978979980981982983984985986987914 unmodified lines# This ensures we catch spaces that were deployed in this sessionif session_token and session_token in user_sessions:session = user_sessions[session_token]# Ensure deployed_spaces exists (for backward compatibility with old sessions)if "deployed_spaces" not in session:session["deployed_spaces"] = []deployed_spaces = session.get("deployed_spaces", [])print(f"[Deploy] Checking session for existing spaces. Found {len(deployed_spaces)} deployed spaces.")51 unmodified linesif session_token and session_token in user_sessions:if repo_id:session = user_sessions[session_token]# Ensure deployed_spaces existsif "deployed_spaces" not in session:session["deployed_spaces"] = []deployed_spaces = session.get("deployed_spaces", [])print(f"[Deploy] 📝 Tracking space in session...")
backend_api.py+10