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

This commit was merged in pull request #49.
This commit is contained in:
David Rodenkirchen
2026-02-20 08:44:17 +01:00
parent d7df5161d4
commit d83182dd7b
@@ -1031,7 +1031,8 @@ 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])})
all_teams.append(current_team)
if current_team is not None:
all_teams.append(current_team)
return all_teams