##// END OF EJS Templates
Added repository followers to the get_repo api function result.
aparkar -
r3195:a50901f2 beta
parent child Browse files
Show More
@@ -555,6 +555,7 b' class ApiController(JSONRPCController):'
555 555 raise JSONRPCError('repository `%s` does not exist' % (repoid))
556 556
557 557 members = []
558 followers = []
558 559 for user in repo.repo_to_perm:
559 560 perm = user.permission.permission_name
560 561 user = user.user
@@ -571,8 +572,12 b' class ApiController(JSONRPCController):'
571 572 users_group_data['permission'] = perm
572 573 members.append(users_group_data)
573 574
575 for user in repo.followers:
576 followers.append(user.user.get_api_data())
577
574 578 data = repo.get_api_data()
575 579 data['members'] = members
580 data['followers'] = followers
576 581 return data
577 582
578 583 def get_repos(self, apiuser):
General Comments 0
You need to be logged in to leave comments. Login now