mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-21 04:40:17 -04:00
Hello
This commit is contained in:
parent
6d7d8d450f
commit
2b252b8f9d
|
@ -117,6 +117,10 @@ class Student:
|
||||||
url= "curl -i -u " + user + ":" + pwd + " -d '" + '{"name":"' + self.username + '"}' + "' " + "https://api.github.com/user/repos"
|
url= "curl -i -u " + user + ":" + pwd + " -d '" + '{"name":"' + self.username + '"}' + "' " + "https://api.github.com/user/repos"
|
||||||
os.system(url)
|
os.system(url)
|
||||||
command('git clone https://github.com/' + self.git + '/' + self.username + '.git')
|
command('git clone https://github.com/' + self.git + '/' + self.username + '.git')
|
||||||
|
command('touch README.md')
|
||||||
|
command('git add .')
|
||||||
|
command('git commit -m Hello')
|
||||||
|
command('git push -u origin master')
|
||||||
self.repo = 'https://github.com/' + self.git + '/' + self.username + '.git'
|
self.repo = 'https://github.com/' + self.git + '/' + self.username + '.git'
|
||||||
print(url)
|
print(url)
|
||||||
data={
|
data={
|
||||||
|
@ -279,6 +283,6 @@ class Student:
|
||||||
}
|
}
|
||||||
#print(putDB(data, "http://127.0.0.1:8000/students/" + self.username + "/"))
|
#print(putDB(data, "http://127.0.0.1:8000/students/" + self.username + "/"))
|
||||||
|
|
||||||
data = getStudent("2022rkhondak")
|
data = getStudent("2022inafi")
|
||||||
s = Student(data)
|
s = Student(data)
|
||||||
s.addClass('57')
|
s.addClass('57')
|
|
@ -57,7 +57,7 @@ def command(command):
|
||||||
process = subprocess.Popen(ar, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
process = subprocess.Popen(ar, stdout=subprocess.PIPE,stderr=subprocess.PIPE)
|
||||||
p=process.poll()
|
p=process.poll()
|
||||||
output = process.communicate()[1]
|
output = process.communicate()[1]
|
||||||
#print(output.decode('utf-8'))
|
print(output.decode('utf-8'))
|
||||||
|
|
||||||
####################################################################################################################################
|
####################################################################################################################################
|
||||||
|
|
||||||
|
@ -426,7 +426,8 @@ class Teacher:
|
||||||
command("git clone " + student['repo'])
|
command("git clone " + student['repo'])
|
||||||
os.chdir(cdir)
|
os.chdir(cdir)
|
||||||
copy_tree(cpath, path + "/" + student['ion_user'])
|
copy_tree(cpath, path + "/" + student['ion_user'])
|
||||||
command('git branch ' + classes)
|
os.chdir("Students/" + classes + "/" + student['ion_user'])
|
||||||
|
|
||||||
command('git add .')
|
command('git add .')
|
||||||
command('git commit -m Hello')
|
command('git commit -m Hello')
|
||||||
command('git push -u origin ' + classes)
|
command('git push -u origin ' + classes)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6f2b3806471b68a47db1208cc6b8c5dc37191df8
|
Subproject commit e863f414aed9de267ac442752c5585ead0536246
|
Loading…
Reference in New Issue
Block a user