new assignment in cli

This commit is contained in:
Raffu Khondaker 2020-06-16 14:17:12 -04:00
parent a6500b4353
commit 4be9377145

View File

@ -230,7 +230,9 @@ def teacherCLI(user, password):
] ]
ass = prompt(questions)['assignment'] ass = prompt(questions)['assignment']
apath = teacher.username + "/" + course + "/" + ass apath = teacher.username + "/" + course + "/" + ass
due = input("Enter due date (Example: 2020-08-11 16:58): ")
due = due + ":00.000000"
due = due.strip()
teacher.addAssignment(apath, course, due) teacher.addAssignment(apath, course, due)