Merge branch 'development' of github.com:Rushilwiz/SkoolOS into development

 Conflicts:
	CLI/teacher.py
This commit is contained in:
Nathaniel Kenschaft 2020-06-16 20:22:06 -04:00
commit 9bd600a8f0
2 changed files with 9 additions and 2 deletions

View File

@ -158,6 +158,13 @@ class Teacher:
self.classes = data['classes'] self.classes = data['classes']
if os.path.isdir(self.username + "/Students"): if os.path.isdir(self.username + "/Students"):
print("Synced to " + self.username) print("Synced to " + self.username)
existing_classes = os.listdir(self.username)
for c in self.classes:
if not c in str(existing_classes):
os.mkdir(self.username + "/" + c)
print("Updated: " + c)
command("touch " + self.username + "/" + c + "/README.md")
else: else:
os.makedirs(self.username + "/Students") os.makedirs(self.username + "/Students")

View File