From b5218150d2af2d94bd18734dd393a6c9e5cb4b49 Mon Sep 17 00:00:00 2001 From: Samuel Van Campenhout Date: Tue, 15 Oct 2024 17:57:54 +0200 Subject: [PATCH] fix small bug --- course.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course.py b/course.py index 2ed9977..69ae3fe 100644 --- a/course.py +++ b/course.py @@ -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