From d05fcdcca2c652bbaf144af083d28912b34e837a Mon Sep 17 00:00:00 2001 From: Raffu Khondaker <2022rkhondak@tjhsst.edu> Date: Tue, 16 Jun 2020 18:23:53 -0400 Subject: [PATCH] forcedd login in skoolos.py --- eharris1/Art12_eharris1/README.md | 0 skoolos.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 eharris1/Art12_eharris1/README.md diff --git a/eharris1/Art12_eharris1/README.md b/eharris1/Art12_eharris1/README.md new file mode 100644 index 0000000..e69de29 diff --git a/skoolos.py b/skoolos.py index 3bc163b..ad7491b 100644 --- a/skoolos.py +++ b/skoolos.py @@ -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: _): ', + }, + ] + cname = prompt(questions)['cname'] + teacher.makeClass(cname) soption = ["1) Add individual student", "2) Add list of students through path", "3) Exit"] questions = [