mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-16 02:10:19 -04:00
remove index.html
This commit is contained in:
parent
15f50b7519
commit
de80c69a85
|
@ -201,6 +201,7 @@ def teacherCLI(user, password):
|
|||
if(option == '2'):
|
||||
nlist = os.listdir(teacher.username + "/" + course)
|
||||
alist = getDB("http://localhost:8000/api/classes/" + course)['assignments']
|
||||
print(nlist)
|
||||
tlist = []
|
||||
b = True
|
||||
for n in nlist:
|
||||
|
@ -215,6 +216,8 @@ def teacherCLI(user, password):
|
|||
b = False
|
||||
if(b):
|
||||
tlist.append(n)
|
||||
|
||||
|
||||
nlist = tlist
|
||||
if(len(nlist) == 0):
|
||||
print("No new assignments found")
|
||||
|
@ -319,8 +322,8 @@ def authenticate():
|
|||
# web_dir = os.path.join(os.getcwd(), 'CLI', 'oauth')
|
||||
# print(web_dir)
|
||||
# os.chdir(web_dir)
|
||||
# if os.path.exists("index.html"):
|
||||
# os.remove("index.html")
|
||||
## if os.path.exists("index.html"):
|
||||
## os.remove("index.html")
|
||||
|
||||
# template = open("template.html", "r")
|
||||
# index = open("index.html", "w")
|
||||
|
|
Loading…
Reference in New Issue
Block a user