From adc74d6288afe4e07fa3ece1b02df04936e31feb Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 8 Dec 2021 17:59:22 +0100 Subject: [PATCH] Fixed server repo --- src/gismo_data/service/server_repository_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gismo_data/service/server_repository_service.py b/src/gismo_data/service/server_repository_service.py index cac5685..6096390 100644 --- a/src/gismo_data/service/server_repository_service.py +++ b/src/gismo_data/service/server_repository_service.py @@ -37,7 +37,7 @@ class ServerRepositoryService(ServerRepositoryABC): def get_server_by_discord_id(self, discord_id: int) -> Server: self._logger.trace(__name__, f'Send SQL command: {Server.get_select_by_discord_id_string(discord_id)}') - result = self._context.select(Server.get_select_by_discord_id_string(discord_id)) + result = self._context.select(Server.get_select_by_discord_id_string(discord_id))[0] return Server( result[1], id=result[0]