forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-02-18 18:28:24 +02:00
parent be490f8562
commit e4c88a1a41
1 changed files with 1 additions and 1 deletions

View File

@ -1345,7 +1345,7 @@ class User(Base):
badges = self.badges
if not self.lifetimedonated_visible and not (v.id == self.id or v.admin_level >= PERMS['VIEW_PATRONS']):
badges = [x for x in badges if badge.id not in {22, 23, 24, 25, 26, 27, 28, 257, 258, 259, 260, 261}]
badges = [x for x in badges if x.id not in {22, 23, 24, 25, 26, 27, 28, 257, 258, 259, 260, 261}]
return sorted(badges, key=badge_ordering_func)