def reset_form(): user = users.get_current_user() if user.email() != SUPERUSER_EMAIL: print("user is {}".format(user.email())) abort(403) print("request args {}".format(request.args)) if 'scores' in request.args: print("Deleting scores") Score.DeleteAll() if 'team' in request.args: print("Deleting teams") Team.DeleteAll() models.SetupStaticData() judges = Judge.GetSorted() categories = Category.GetSorted() teams = Team.GetSorted() scores = Score.GetSorted() return render_template('reset.html', judges=judges, teams=teams, categories=categories, scores=scores)