From e156c375857f1ae417cad102da2961a760b3af60 Mon Sep 17 00:00:00 2001 From: Nicholas Couillard Date: Thu, 5 Oct 2023 17:21:28 -0400 Subject: [PATCH] notes --- DynamoDB.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DynamoDB.py b/DynamoDB.py index 8012a16..53ca2c0 100644 --- a/DynamoDB.py +++ b/DynamoDB.py @@ -3,6 +3,7 @@ import math 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): courseInsertion = course_table.put_item( @@ -24,7 +25,7 @@ def insert(courseId, courseSection, courseLevel, courseDepartment, courseProfess if __name__ == '__main__': - # NONE OF THE INFO COLLECTING WILL LIKELY BE DONE IN PYTHON, THIS IS PROBABLY VUE STUFF. JUST FOR DEMO + # NOTE: NONE OF THE INFO COLLECTING WILL LIKELY BE DONE IN PYTHON, THIS IS PROBABLY VUE STUFF. JUST FOR DEMO courseDepartment = input("Enter department: ").upper() courseNumber = int(input("\nEnter course number: ")) # TODO: Error handling for invalid inputs courseSection = input("\nEnter course section: ")