Skip to content

Commit

Permalink
notes
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 d40a08d commit e156c37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DynamoDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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: ")
Expand Down

0 comments on commit e156c37

Please sign in to comment.