add maxPerPage
This commit is contained in:
2
app.py
2
app.py
@@ -53,7 +53,7 @@ def index():
|
||||
term.c += ' + ' if random.randint(0,1) else ' - '
|
||||
term.c += str(random.randint(1,maxValue))
|
||||
zufall.append(term)
|
||||
return render_template('arbeitsblatt.html',aufgaben=zufall)
|
||||
return render_template('arbeitsblatt.html',aufgaben=zufall,maxPerPage=int(request.form.get('maxPerPage')))
|
||||
else:
|
||||
return render_template('generator.html', reihen=rt_rechenreihen)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user