Bugfix: Teams Feature broken if there are no teams in the DB #49

Merged
Typhus merged 1 commits from bugfix/teams-broken-if-there-are-no-teams into main 2026-02-20 07:44:54 +00:00

View File

@ -1031,7 +1031,8 @@ class DatabaseService:
user = self._map_db_result_to_user(row[7:]) 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])}) current_team = Team(id=row[0], name=row[1], abbreviation=row[2], join_password=row[3], members={user: TeamStatus.from_str(row[5])})
all_teams.append(current_team) if current_team is not None:
all_teams.append(current_team)
return all_teams return all_teams