Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit e24266f

Browse files
committed
Use -1 for getting last name
1 parent 13cd7c9 commit e24266f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/admin/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ <h3>Remove a Current Instructor</h3>
188188
<div class="list-group">
189189
<form method="POST" id="removeins" action="Javascript:remove_instructor();">
190190
<select size="10" id="instructorlist" name="instructor" class="form-control">
191-
{{ for person in sorted(list(instructors.values()), key=lambda s: str(s).split(" ")[1]): }}
191+
{{ for person in sorted(list(instructors.values()), key=lambda s: str(s).split()[-1]): }}
192192
<option value="{{=person}}">{{ =person }}</option>
193193
{{ pass }}
194194
</select>

0 commit comments

Comments
 (0)