From 2b252b8f9dbac2e9ca5ac30d43037c32cd118c80 Mon Sep 17 00:00:00 2001 From: Raffu Khondaker <2022rkhondak@tjhsst.edu> Date: Wed, 10 Jun 2020 06:10:43 -0400 Subject: [PATCH] Hello --- CLI/s-git.py | 6 +++++- CLI/t-git.py | 5 +++-- Students/English11_eharris1/2022rkhondak | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CLI/s-git.py b/CLI/s-git.py index ec1a520..43d5268 100644 --- a/CLI/s-git.py +++ b/CLI/s-git.py @@ -117,6 +117,10 @@ class Student: url= "curl -i -u " + user + ":" + pwd + " -d '" + '{"name":"' + self.username + '"}' + "' " + "https://api.github.com/user/repos" os.system(url) 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' print(url) data={ @@ -279,6 +283,6 @@ class Student: } #print(putDB(data, "http://127.0.0.1:8000/students/" + self.username + "/")) -data = getStudent("2022rkhondak") +data = getStudent("2022inafi") s = Student(data) s.addClass('57') \ No newline at end of file diff --git a/CLI/t-git.py b/CLI/t-git.py index 4d6a821..cf27ba1 100644 --- a/CLI/t-git.py +++ b/CLI/t-git.py @@ -57,7 +57,7 @@ def command(command): process = subprocess.Popen(ar, stdout=subprocess.PIPE,stderr=subprocess.PIPE) p=process.poll() 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']) os.chdir(cdir) copy_tree(cpath, path + "/" + student['ion_user']) - command('git branch ' + classes) + os.chdir("Students/" + classes + "/" + student['ion_user']) + command('git add .') command('git commit -m Hello') command('git push -u origin ' + classes) diff --git a/Students/English11_eharris1/2022rkhondak b/Students/English11_eharris1/2022rkhondak index 6f2b380..e863f41 160000 --- a/Students/English11_eharris1/2022rkhondak +++ b/Students/English11_eharris1/2022rkhondak @@ -1 +1 @@ -Subproject commit 6f2b3806471b68a47db1208cc6b8c5dc37191df8 +Subproject commit e863f414aed9de267ac442752c5585ead0536246