Skip to content

Commit

Permalink
Add user with their friend
Browse files Browse the repository at this point in the history
  • Loading branch information
yj950714 committed Oct 22, 2016
1 parent 75afe53 commit 63d3a47
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/basic/add_user_to_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ def add_user_to_group():
meth = "group_open_http_svc/add_group_member?"
url = set_method(meth)
user = db.search("select Account_Number,ID from IGEM.Person;")
for i in range(2000,len(user)):
for i in range(4000,len(user)):
#team_id = db.search("select Team_ID from IGEM.Join_Team where Person_ID = %d;" %user[i]["ID"])[0]["Team_ID"]
#group_id = db.search("select group_id from Chat.groups where team_id = %d;"%team_id)[0]["group_id"]
#group_id = "@TGS#2GPDAXFE6"
group_id = ""
#group_id = "@TGS#2GPDAXFE6" #IGEMer
#group_id = "@TGS#2ZGTGXFEA" #IGEMer2
group_id = "@TGS#2WFXBXFE2" #IGEMer3
data = {
"GroupId":group_id,
"MemberList":[
Expand All @@ -124,6 +125,6 @@ def add_user_to_group():
else:
print data["MemberList"][0]["Member_Account"]

#add_user_to_group()
add_user_to_group()
#del_friend()
add_friend()
#add_friend()

0 comments on commit 63d3a47

Please # to comment.