Skip to content

Commit

Permalink
Colour the user's preferences according to the number of times they h…
Browse files Browse the repository at this point in the history
…ave already given a lesson
  • Loading branch information
SamuelVch98 committed Oct 21, 2024
1 parent f113f91 commit bab2aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def update_course_info():
organisation_code = request.form.getlist('organization_code[]')
if not len(organisation_code):
flash("Please select at least one organization", "danger")
return redirect(url_for('course.course_info', course_id=course_id))
return redirect(url_for('course.course_info', course_id=course_id, year=year))

course = db.session.query(Course).filter(Course.id == course_id, Course.year == year).first()
if not course:
Expand Down

0 comments on commit bab2aee

Please sign in to comment.