From 0ad3cea5434c30bf93d57339b96d9ccc5a0676dc Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Fri, 17 Dec 2021 17:38:34 +0100 Subject: [PATCH] use correct param --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 105030d..6ea8aed 100644 --- a/app.py +++ b/app.py @@ -14,9 +14,9 @@ from wtforms import HiddenField, RadioField, StringField from wtforms.validators import DataRequired -def rand(): +def rand(length=30): """Generated random secret.""" - return "".join(random.choices(string.ascii_uppercase + string.digits, k=N)) + return "".join(random.choices(string.ascii_uppercase + string.digits, k=length)) app = Flask(__name__)