Added achievements to user profile #268_achievements

This commit is contained in:
2023-07-15 15:16:01 +02:00
parent a71e3e4720
commit aae6472e11
9 changed files with 121 additions and 40 deletions

View File

@@ -76,7 +76,7 @@ class AchievementRepositoryService(AchievementRepositoryABC):
achievements = List(Achievement)
achievements_joins = List(UserGotAchievement)
self._logger.trace(__name__, f"Send SQL command: {UserGotAchievement.get_select_by_user_id_string(user_id)}")
results = self._context.select(UserGotAchievement.get_select_all_string())
results = self._context.select(UserGotAchievement.get_select_by_user_id_string(user_id))
for result in results:
self._logger.trace(__name__, f"Got UserGotAchievement with id {result[0]}")
achievements_joins.append(self._join_from_result(result))