1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
This commit is contained in:
Steffo 2018-02-02 11:48:50 +01:00
parent 1a56dde8a7
commit 4f3e1030bd
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C27544372FBB445D

View file

@ -31,7 +31,7 @@ def page_leaderboards():
@app.route("/challenge/1") @app.route("/challenge/1")
def page_challenge_one(): def page_challenge_one():
session = Session() session = Session()
result = session.execute(r"SELECT sum(osu.std_pp) + sum(osu.taiko_pp) + sum(osu.catch_pp) + sum(osu.mania_pp) total_pp FROM osu;") result = session.execute(r"SELECT sum(osu.std_pp) + sum(osu.taiko_pp) + sum(osu.catch_pp) + sum(osu.mania_pp) total_pp FROM osu;").first()[0]
session.close() session.close()
return render_template("challenge1.html", starting=4959.518703999999, result=result, target=5200) return render_template("challenge1.html", starting=4959.518703999999, result=result, target=5200)