idac: remove hanging "'s" on frontend if the person viewing the page doesn't have a profile

This commit is contained in:
2024-01-09 21:03:58 -05:00
parent 0a56207e90
commit d01ceab92f
2 changed files with 8 additions and 7 deletions

View File

@ -127,10 +127,11 @@ class IDACFrontend(FE_Base):
ticket_data = await self.data.item.get_tickets(user_id)
rank = await self.data.profile.get_profile_rank(user_id, self.version)
tickets = {
self.ticket_names[ticket["ticket_id"]]: ticket["ticket_cnt"]
for ticket in ticket_data
}
if ticket_data:
tickets = {
self.ticket_names[ticket["ticket_id"]]: ticket["ticket_cnt"]
for ticket in ticket_data
}
return Response(template.render(
title=f"{self.core_config.server.name} | {self.nav_name}",