Bugfix: Teams Feature broken if there are no teams in the DB #49
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user