Skip to content

Commit

Permalink
added two more attributes
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 5a3b31d commit e6fda06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DynamoDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ def insert():
Item = {
'CourseId' : 'CSE1010', # partition key
'Section' : '001L', # sort key?
'Level' : '1000', # useful attribute for searching
'Department' : 'CSE', # useful attribute for searching
'Professor' : 'Gregory Jackson', # TODO: support multiple instructors
'StudentsEnrolled' : 0,
'StudentsEnrolled' : 0, # useful attribute for professor
'StartTime' : 1630, # is storing times in the form of 24-hour time easier? it's simple to convert when necessary
'EndTime' : 1720,
'EndTime' : 1720,
'OpenStatus' : True # this attribute could be useful for hiding unavailable courses
}
)
Expand Down

0 comments on commit e6fda06

Please sign in to comment.