forked from rDrama/rDrama
parent
5ac63845f4
commit
c16371c1ac
|
@ -42,7 +42,7 @@ def hats(v:User):
|
||||||
if SITE == 'rdrama.net':
|
if SITE == 'rdrama.net':
|
||||||
hats = sorted(hats.all(), key=lambda x: hat_count.index(x[0].id) if x[0].id in hat_count else 0)
|
hats = sorted(hats.all(), key=lambda x: hat_count.index(x[0].id) if x[0].id in hat_count else 0)
|
||||||
else:
|
else:
|
||||||
hats = sorted(hats.all(), key=lambda x: hat_count.index(x.id) if x.id in hat_count else 0, reverse=True)
|
hats = sorted(hats.all(), key=lambda x: hat_count.index(x.id) if x.id in hat_count else 0)
|
||||||
|
|
||||||
firstrange = PAGE_SIZE * (page - 1)
|
firstrange = PAGE_SIZE * (page - 1)
|
||||||
secondrange = firstrange + PAGE_SIZE
|
secondrange = firstrange + PAGE_SIZE
|
||||||
|
|
Loading…
Reference in New Issue