From e6fda06adea3fd2977252972d6bd6b4c91c08018 Mon Sep 17 00:00:00 2001 From: Nicholas Couillard Date: Thu, 5 Oct 2023 10:06:15 -0400 Subject: [PATCH] added two more attributes --- DynamoDB.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DynamoDB.py b/DynamoDB.py index 092accb..b9c52f1 100644 --- a/DynamoDB.py +++ b/DynamoDB.py @@ -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 } )