Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
made python changes
  • Loading branch information
nic21003 committed Nov 29, 2023
1 parent 7e6940f commit 7d537e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CourseFunctions.py
Expand Up @@ -85,7 +85,7 @@ def enrollStudent(courseId, courseSection, studentID):
)

studentEnrolledCourses = (studentCourseUpdater.get('Item')).get('EnrolledCourses')
studentEnrolledCourses.append(courseId)
studentEnrolledCourses.append([courseId, courseSection])

update_courses = student_table.update_item(
Key = {
Expand Down Expand Up @@ -152,4 +152,4 @@ if __name__ == '__main__':
# courseInsert(courseId, courseSection, courseLevel, courseDepartment, courseProfessor, courseEnrolledStudents, courseMaxStudents, courseIsOpen, courseFormat, coursePrereqs, courseStartTime, courseEndTime, courseScheduledDays, courseLocation, enrolledStudentList)


enrollStudent('ANTH3524', '001', 'awp10101')
enrollStudent('SPAN1818', '001L', 'admin')

0 comments on commit 7d537e9

Please sign in to comment.