~blowry/pokegen

1007d11f78bd636eea8f8fff91b522fef947db50 — Benjamin Lowry 4 months ago d21805c master
Don't allow rerolling shared teams
1 files changed, 1 insertions(+), 1 deletions(-)

M app.py
M app.py => app.py +1 -1
@@ 30,7 30,7 @@ def index_post():
        return render_template("generated_team.html", team=team, teamscore=get_team_score(team), uuid=uuid)

    if request.form["action"] == "reroll":
        if request.form["uuid"][:9] == "rerolled_": # cheater alert!
        if request.form["uuid"][:9].startswith("rerolled_") or request.form["uuid"][:9].startswith("team_"): # cheater alert!
            return "Nice try."
        try:
            team = loads(r.get(request.form["uuid"]))