forked from rDrama/rDrama
1
0
Fork 0

put paypig badges before total contribution badges

master
Aevann 2023-05-13 00:42:38 +03:00
parent 040ae9573c
commit f6708e8a1c
1 changed files with 1 additions and 1 deletions

View File

@ -1230,7 +1230,7 @@ class User(Base):
x = sorted(self.badges, key=badge_ordering_func)
return x
badge_ordering_tuple = (257, 258, 259, 260, 261)
badge_ordering_tuple = (22, 23, 24, 25, 26, 27, 28, 257, 258, 259, 260, 261)
def badge_ordering_func(b):
if b.badge_id in badge_ordering_tuple:
return badge_ordering_tuple.index(b.badge_id)