Skip to content
Snippets Groups Projects
Commit 148d17b6 authored by Nick Lee's avatar Nick Lee
Browse files

fix check invitation script

parent 185520f2
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ for project in projects_data: ...@@ -123,7 +123,7 @@ for project in projects_data:
'http_url': http_url, 'http_url': http_url,
'ssh_url': ssh_url}) 'ssh_url': ssh_url})
members = gitlab.request("projects/%s/members" % project['id']) members = gitlab.request("projects/%s/members" % project['id'])
if len(members) >= 1: if len(members) >= 1 and members[0] != None:
print("%s,%s,%s,%s" % (username,ssh_url,http_url,"accepted")) print("%s,%s,%s,%s" % (username,ssh_url,http_url,"accepted"))
else: else:
print("%s,%s,%s,%s" % (username,ssh_url,http_url,"DID NOT ACCEPT INVITE YET")) print("%s,%s,%s,%s" % (username,ssh_url,http_url,"DID NOT ACCEPT INVITE YET"))
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