1.0.2 #283 #284

Merged
edraft merged 3 commits from 1.0.2 into master 2023-03-29 23:06:51 +02:00
Showing only changes of commit a4d3cffa93 - Show all commits

View File

@ -57,7 +57,6 @@ class ServerRepositoryService(ServerRepositoryABC):
def get_server_by_id(self, server_id: int) -> Server:
cs = self._cache.cached_server.where(lambda x: x.id == server_id).single_or_default()
if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs
self._logger.trace(__name__, f"Send SQL command: {Server.get_select_by_id_string(server_id)}")
@ -69,7 +68,6 @@ class ServerRepositoryService(ServerRepositoryABC):
def get_server_by_discord_id(self, discord_id: int) -> Server:
cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default()
if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs
self._logger.trace(
@ -82,7 +80,6 @@ class ServerRepositoryService(ServerRepositoryABC):
def find_server_by_discord_id(self, discord_id: int) -> Optional[Server]:
cs = self._cache.cached_server.where(lambda x: x.discord_id == discord_id).single_or_default()
if cs is not None:
self._logger.error(__name__, f"CACHE")
return cs
self._logger.trace(