Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
teacher added as student to course for real this time (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe authored May 18, 2024
1 parent ce15d41 commit c73d4a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/seeder/seeder.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def into_the_db(my_uid):
course_id = insert_course_into_db_get_id(session, teacher_uid)
subscribed_students = populate_course_students(
session, course_id, students)
session.add(CourseStudent(course_id=course_id, uid=my_uid))
session.commit()
subscribed_students.append(my_uid) # my_uid is also a student
populate_course_projects(
session, course_id, subscribed_students, teacher_uid)
Expand Down

0 comments on commit c73d4a1

Please sign in to comment.