mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-03 20:20:18 -04:00
Merge branch 'master' of github.com:Rushilwiz/SkoolOS
This commit is contained in:
commit
6bfdadf162
|
@ -164,11 +164,16 @@ class Teacher:
|
|||
os.mkdir(self.username + "/" + c)
|
||||
print("Updated: " + c)
|
||||
command("touch " + self.username + "/" + c + "/README.md")
|
||||
os.makedirs(self.username + "/Students/" + c)
|
||||
try:
|
||||
os.makedirs(self.username + "/Students/" + c)
|
||||
except:
|
||||
pass
|
||||
|
||||
else:
|
||||
os.makedirs(self.username + "/Students")
|
||||
|
||||
try:
|
||||
os.makedirs(self.username + "/Students")
|
||||
except:
|
||||
pass
|
||||
# 2020-05-11 12:25:00
|
||||
|
||||
# class name format: <course-name>_<ion_user>
|
||||
|
@ -299,7 +304,10 @@ class Teacher:
|
|||
os.mkdir(path)
|
||||
f = open(path + "/README.md", "w")
|
||||
f.close()
|
||||
os.makedirs(self.username + "/Students/" + cname)
|
||||
try:
|
||||
os.makedirs(self.username + "/Students/" + cname)
|
||||
except:
|
||||
pass
|
||||
# push to remote repo
|
||||
# os.chdir(path)
|
||||
# for a in assignments:
|
||||
|
|
|
@ -244,7 +244,7 @@ def teacherCLI(user, password):
|
|||
# selected a class
|
||||
else:
|
||||
#Pull confirmed students directory
|
||||
teacher.getStudents(course)
|
||||
#teacher.getStudents(course)
|
||||
option = classOptionsTeacher(teacher, course)
|
||||
if option == '1':
|
||||
EXIT = addStudentsTeacher(teacher, course)
|
||||
|
|
Loading…
Reference in New Issue
Block a user