Skip to content

Commit dae64a0

Browse files
committed
Doc: Fix error
1 parent 4dcccae commit dae64a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

load_multiple_users.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ from flask_login import login_required
830830
@app.route('/home/student')
831831
@login_required
832832
def index_student():
833-
student = Student.query.all()
833+
student = Student.query.first()
834834
return render_template(
835835
'index_student.html',
836836
title='Home Student',
@@ -841,7 +841,7 @@ def index_student():
841841
@app.route('/home/teacher')
842842
@login_required
843843
def index_teacher():
844-
teacher = Teacher.query.all()
844+
teacher = Teacher.query.first()
845845
return render_template(
846846
'index_teacher.html',
847847
title='Home Teacher',

0 commit comments

Comments
 (0)