Merge pull request #1 from IThinkImOKAY/patch-1

buddy
master
Aevann1 2021-07-21 04:07:34 +02:00 committed by GitHub
commit 656312dc9b
1 changed files with 2 additions and 4 deletions

View File

@ -28,11 +28,9 @@ def user_info(v, username):
@app.route("/leaderboard", methods=["GET"])
@auth_desired
def leaderboard(v):
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
if v and v.is_banned and not v.unban_utc:return render_template("seized.html")
users1, users2 = leaderboard()
return render_template("leaderboard.html", v=v, users1=users1, users2=users2)
if request.path == "/": render_template("mods.html", v=v, b=board, me=me)
else: return jsonify({"data":[x.json for x in board.mods_list]})
@cache.memoize(timeout=86400)
def leaderboard():
@ -519,4 +517,4 @@ def saved_comments(v, username):
next_exists=next_exists,
standalone=True),
'api': lambda: jsonify({"data": [x.json for x in listing]})
}
}