bbbb
This commit is contained in:
parent
f035294298
commit
b10ef72021
3 changed files with 10 additions and 8 deletions
|
@ -16,7 +16,7 @@ site = environ.get("DOMAIN").strip()
|
|||
|
||||
beams_client = PushNotifications(instance_id=PUSHER_INSTANCE_ID, secret_key=PUSHER_KEY)
|
||||
|
||||
if True:
|
||||
if site == 'rdrama.net':
|
||||
topmakers = {}
|
||||
for k, val in marseys.items():
|
||||
if val in topmakers: topmakers[val] += 1
|
||||
|
@ -330,7 +330,7 @@ def leaderboard(v):
|
|||
for user in users11: users12.append((user, badges[user.id]))
|
||||
users12 = sorted(users12, key=lambda x: x[1], reverse=True)[:25]
|
||||
|
||||
if True: users13 = topmakers
|
||||
if request.host == 'rdrama.net': users13 = topmakers
|
||||
else: users13 = None
|
||||
|
||||
votes1 = g.db.query(Vote.user_id, func.count(Vote.user_id)).filter(Vote.vote_type==1).group_by(Vote.user_id).order_by(func.count(Vote.user_id).desc()).all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue