show lifetime_donated in the badge description

master
Aevann 2023-05-13 00:16:31 +03:00
parent dfe0705e5d
commit 0d4660c17f
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class Badge(Base):
text = self.badge.description + " until"
elif self.badge_id in {28, 170, 179}:
text = self.badge.description + " permanently"
elif self.badge_id in {257, 258, 259, 260, 261}:
text = self.badge.description + f" - ${self.lifetime_donated}"
elif self.description:
text = self.description
elif self.badge.description: