Fixed level page

This commit is contained in:
Sven Heidemann 2024-01-26 12:13:53 +01:00
parent 07fc512633
commit 7185b087c9
2 changed files with 2 additions and 6 deletions

View File

@ -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)

View File

@ -45,10 +45,9 @@
</div>
</th>
<th hideable-th="icon" [parent]="this" [sortable]="true">
<th hideable-th="icon" [parent]="this">
<div class="table-header-label">
<div class="table-header-text">{{'common.icon' | translate}}</div>
<p-sortIcon field="id" class="table-header-icon"></p-sortIcon>
</div>
</th>