Show More
@@ -555,6 +555,7 b' class ApiController(JSONRPCController):' | |||||
555 | raise JSONRPCError('repository `%s` does not exist' % (repoid)) |
|
555 | raise JSONRPCError('repository `%s` does not exist' % (repoid)) | |
556 |
|
556 | |||
557 | members = [] |
|
557 | members = [] | |
|
558 | followers = [] | |||
558 | for user in repo.repo_to_perm: |
|
559 | for user in repo.repo_to_perm: | |
559 | perm = user.permission.permission_name |
|
560 | perm = user.permission.permission_name | |
560 | user = user.user |
|
561 | user = user.user | |
@@ -571,8 +572,12 b' class ApiController(JSONRPCController):' | |||||
571 | users_group_data['permission'] = perm |
|
572 | users_group_data['permission'] = perm | |
572 | members.append(users_group_data) |
|
573 | members.append(users_group_data) | |
573 |
|
574 | |||
|
575 | for user in repo.followers: | |||
|
576 | followers.append(user.user.get_api_data()) | |||
|
577 | ||||
574 | data = repo.get_api_data() |
|
578 | data = repo.get_api_data() | |
575 | data['members'] = members |
|
579 | data['members'] = members | |
|
580 | data['followers'] = followers | |||
576 | return data |
|
581 | return data | |
577 |
|
582 | |||
578 | def get_repos(self, apiuser): |
|
583 | def get_repos(self, apiuser): |
General Comments 0
You need to be logged in to leave comments.
Login now