From 7185b087c98dad302616b269533b6286371fcdf5 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 26 Jan 2024 12:13:53 +0100 Subject: [PATCH] Fixed level page --- bot/src/bot_graphql/queries/level_query.py | 5 +---- .../server/levels/components/levels/levels.component.html | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bot/src/bot_graphql/queries/level_query.py b/bot/src/bot_graphql/queries/level_query.py index d0762f95..d4a539b7 100644 --- a/bot/src/bot_graphql/queries/level_query.py +++ b/bot/src/bot_graphql/queries/level_query.py @@ -9,10 +9,7 @@ class LevelQuery(DataQueryWithHistoryABC): DataQueryWithHistoryABC.__init__(self, "Level", "LevelsHistory", LevelHistory, db) self.set_field("id", lambda x, *_: x.id) - self.set_field( - "iconURL", - lambda x, *_: "https://cdn.discordapp.com/emojis/1170348708894875659.webp?size=32&quality=lossless", - ) + self.set_field("iconURL", lambda x, *_: x.icon_url) self.set_field("name", lambda x, *_: x.name) self.set_field("color", lambda x, *_: x.color) self.set_field("minXp", lambda x, *_: x.min_xp) diff --git a/web/src/app/modules/view/server/levels/components/levels/levels.component.html b/web/src/app/modules/view/server/levels/components/levels/levels.component.html index 3b9168cb..2263c5f1 100644 --- a/web/src/app/modules/view/server/levels/components/levels/levels.component.html +++ b/web/src/app/modules/view/server/levels/components/levels/levels.component.html @@ -45,10 +45,9 @@ - +
{{'common.icon' | translate}}
-