mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
forcedd login in skoolos.py
This commit is contained in:
parent
9fefe43da6
commit
d05fcdcca2
0
eharris1/Art12_eharris1/README.md
Normal file
0
eharris1/Art12_eharris1/README.md
Normal file
11
skoolos.py
11
skoolos.py
|
@ -203,6 +203,17 @@ def makeClassTeacher(teacher):
|
||||||
]
|
]
|
||||||
cname = prompt(questions)['cname']
|
cname = prompt(questions)['cname']
|
||||||
print(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)
|
teacher.makeClass(cname)
|
||||||
soption = ["1) Add individual student", "2) Add list of students through path", "3) Exit"]
|
soption = ["1) Add individual student", "2) Add list of students through path", "3) Exit"]
|
||||||
questions = [
|
questions = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user