add maxPerPage

This commit is contained in:
2021-06-06 14:12:43 +02:00
parent 724ce039da
commit a487d6d70b
3 changed files with 7 additions and 6 deletions

2
app.py
View File

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