Hotfix: Teams Feature broken if there are no teams in the DB #50
@ -1031,6 +1031,7 @@ class DatabaseService:
|
||||
user = self._map_db_result_to_user(row[7:])
|
||||
current_team = Team(id=row[0], name=row[1], abbreviation=row[2], join_password=row[3], members={user: TeamStatus.from_str(row[5])})
|
||||
|
||||
if current_team is not None:
|
||||
all_teams.append(current_team)
|
||||
|
||||
return all_teams
|
||||
|
||||
Loading…
Reference in New Issue
Block a user