def get_leaderboard(): if request.method == 'GET': scores = spanner.get_leaderboard() return render_template('leaderboard.html', scores=scores) else: return "Method not supported for /leaderboard"