diff --git a/skoolos.py b/skoolos.py index 2dd9b68..f335dfe 100644 --- a/skoolos.py +++ b/skoolos.py @@ -62,7 +62,6 @@ def main(): teacherCLI(USER, PWD) - # while True: # pass def studentCLI(user, password): @@ -212,7 +211,6 @@ def teacherCLI(user, password): #print("Assignments: " + n) b = False if(not os.path.isdir(teacher.username + "/" + course + "/" + n)): - nlist.remove(n) b = False if(b): tlist.append(n) @@ -231,6 +229,9 @@ def teacherCLI(user, password): }, ] ass = prompt(questions)['assignment'] + apath = teacher.username + "/" + course + "/" + ass + + teacher.addAssignment(apath, course, due) def getUser(ion_user, password, utype):