Skip to content
Snippets Groups Projects
Verified Commit d1909c80 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

BUG FIX: syntax

parent 9e54fd6b
No related branches found
No related tags found
No related merge requests found
Pipeline #180 passed with stage
in 55 seconds
...@@ -27,7 +27,7 @@ def teachermate_daemon(): ...@@ -27,7 +27,7 @@ def teachermate_daemon():
# subprocess.call is outdated. Now I'm using everything in docker so I won't support python<3.5 anymore # subprocess.call is outdated. Now I'm using everything in docker so I won't support python<3.5 anymore
# ret = subprocess.call(['./signin-once.fish', prof.openid, prof.N, prof.E, prof.cookiefl]) # ret = subprocess.call(['./signin-once.fish', prof.openid, prof.N, prof.E, prof.cookiefl])
completed = subprocess.run(['./signin-once.fish', prof.openid, prof.N, prof.E, prof.cookiefl], stdout=subprocess.PIPE) completed = subprocess.run(['./signin-once.fish', prof.openid, prof.N, prof.E, prof.cookiefl], stdout=subprocess.PIPE)
ret = completed.return_code ret = completed.returncode
if ret == 0: if ret == 0:
stdout = completed.stdout.decode('utf-8').strip() stdout = completed.stdout.decode('utf-8').strip()
def findStudentRankFromStdout(s): def findStudentRankFromStdout(s):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment