use correct param

This commit is contained in:
cellarspoon 2021-12-17 17:38:34 +01:00
parent 394e128e9f
commit 0ad3cea543
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

4
app.py
View File

@ -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__)