Skip to content

Commit

Permalink
added default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Couillard authored and Nicholas Couillard committed Oct 5, 2023
1 parent f8d2e39 commit 6eaae1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DynamoDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
course_table = resource('dynamodb').Table('Courses')
# NOTE: another table for users and professors may be necessary. In order to do this we might need functionality to introduce salt and hashing for security

def insert(courseId, courseSection, courseLevel, courseDepartment, courseProfessor, courseEnrolledStudents, courseMaxStudents, courseStartTime, courseEndTime, courseIsOpen, courseFormat, courseScheduledDays, courseLocation):
def insert(courseId, courseSection, courseLevel, courseDepartment, courseProfessor, courseEnrolledStudents, courseMaxStudents, courseIsOpen, courseFormat, courseStartTime=0, courseEndTime=0, courseScheduledDays='None', courseLocation='None'):
courseInsertion = course_table.put_item(
Item = {
'CourseId' : courseId, # partition key
Expand Down

0 comments on commit 6eaae1a

Please sign in to comment.