Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelVch98 committed Oct 16, 2024
1 parent 0169cb0 commit b521815
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 @@ -104,7 +104,7 @@ def add_course():

db.session.add(new_course)
db.session.commit()
return redirect(url_for("course.courses", current_year=year))
return redirect(url_for("course.courses", year=year))
except Exception as e:
db.session.rollback()
raise e
Expand Down

0 comments on commit b521815

Please sign in to comment.