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

This commit is contained in:
David Rodenkirchen 2026-02-20 08:44:17 +01:00
parent d7df5161d4
commit d83182dd7b

View File

@ -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