use correct param
This commit is contained in:
parent
394e128e9f
commit
0ad3cea543
4
app.py
4
app.py
@ -14,9 +14,9 @@ from wtforms import HiddenField, RadioField, StringField
|
|||||||
from wtforms.validators import DataRequired
|
from wtforms.validators import DataRequired
|
||||||
|
|
||||||
|
|
||||||
def rand():
|
def rand(length=30):
|
||||||
"""Generated random secret."""
|
"""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__)
|
app = Flask(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user