Added logic to handle level by xp #25

This commit is contained in:
2022-11-06 21:34:58 +01:00
parent 8aee72856c
commit 164671a07c
9 changed files with 138 additions and 34 deletions

View File

@@ -63,7 +63,7 @@ class LevelRepositoryService(LevelRepositoryABC):
def get_levels_by_server_id(self, server_id: int) -> List[Level]:
levels = List(Level)
self._logger.trace(__name__, f'Send SQL command: {Level.get_select_by_server_id_string(server_id)}')
results = self._context.select(Level.get_select_by_server_id_string(server_id))[0]
results = self._context.select(Level.get_select_by_server_id_string(server_id))
for result in results:
self._logger.trace(__name__, f'Get level with id {result[0]}')