implement goto rating

This commit is contained in:
2019-06-09 01:31:46 +02:00
parent f41396c569
commit eb34339ceb
3 changed files with 19 additions and 4 deletions

View File

@@ -74,9 +74,10 @@ def leaderboard():
start = flask.request.args.get(PARAM_START)
page = flask.request.args.get("page")
# intentional double if, page is supposed to overwrite start #
if start:
start = int(start)
elif page:
if page:
start = SEGMENT * int(page)
else:
start = 0