forcedd login in skoolos.py

This commit is contained in:
Raffu Khondaker 2020-06-16 18:23:53 -04:00
parent 9fefe43da6
commit d05fcdcca2
2 changed files with 11 additions and 0 deletions

View File

View File

@ -203,6 +203,17 @@ def makeClassTeacher(teacher):
]
cname = prompt(questions)['cname']
print(cname)
while(not ("_" + teacher.username) in cname):
print("Incorrect naming format")
questions = [
{
'type': 'input',
'name': 'cname',
'message': 'Class Name (Must be: <subject>_<ion_user>): ',
},
]
cname = prompt(questions)['cname']
teacher.makeClass(cname)
soption = ["1) Add individual student", "2) Add list of students through path", "3) Exit"]
questions = [