File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ async def init_team(
121121
122122 # Find the first available team from 4 to 1, or use HR as fallback
123123 init_team_id = await find_first_available_team (team_service , user_id )
124-
124+
125125 # Get current team if user has one
126126 user_current_team = await memory_store .get_current_team (user_id = user_id )
127-
127+
128128 # If no teams available and no current team, return empty state to allow custom team upload
129129 if not init_team_id and not user_current_team :
130130 print ("No teams found in database. System ready for custom team upload." )
@@ -134,7 +134,7 @@ async def init_team(
134134 "team" : None ,
135135 "requires_team_upload" : True ,
136136 }
137-
137+
138138 # Use current team if available, otherwise use found team
139139 if user_current_team :
140140 init_team_id = user_current_team .team_id
@@ -146,7 +146,7 @@ async def init_team(
146146 )
147147 if user_current_team :
148148 init_team_id = user_current_team .team_id
149-
149+
150150 # Verify the team exists and user has access to it
151151 team_configuration = await team_service .get_team_configuration (
152152 init_team_id , user_id
You can’t perform that action at this time.
0 commit comments