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'):
|
if(option == '2'):
|
||||||
nlist = os.listdir(teacher.username + "/" + course)
|
nlist = os.listdir(teacher.username + "/" + course)
|
||||||
alist = getDB("http://localhost:8000/api/classes/" + course)['assignments']
|
alist = getDB("http://localhost:8000/api/classes/" + course)['assignments']
|
||||||
|
print(nlist)
|
||||||
tlist = []
|
tlist = []
|
||||||
b = True
|
b = True
|
||||||
for n in nlist:
|
for n in nlist:
|
||||||
|
@ -215,6 +216,8 @@ def teacherCLI(user, password):
|
||||||
b = False
|
b = False
|
||||||
if(b):
|
if(b):
|
||||||
tlist.append(n)
|
tlist.append(n)
|
||||||
|
|
||||||
|
|
||||||
nlist = tlist
|
nlist = tlist
|
||||||
if(len(nlist) == 0):
|
if(len(nlist) == 0):
|
||||||
print("No new assignments found")
|
print("No new assignments found")
|
||||||
|
@ -319,8 +322,8 @@ def authenticate():
|
||||||
# web_dir = os.path.join(os.getcwd(), 'CLI', 'oauth')
|
# web_dir = os.path.join(os.getcwd(), 'CLI', 'oauth')
|
||||||
# print(web_dir)
|
# print(web_dir)
|
||||||
# os.chdir(web_dir)
|
# os.chdir(web_dir)
|
||||||
# if os.path.exists("index.html"):
|
## if os.path.exists("index.html"):
|
||||||
# os.remove("index.html")
|
## os.remove("index.html")
|
||||||
|
|
||||||
# template = open("template.html", "r")
|
# template = open("template.html", "r")
|
||||||
# index = open("index.html", "w")
|
# index = open("index.html", "w")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user