Skip to content

Commit

Permalink
🚒 Unbounds the listings
Browse files Browse the repository at this point in the history
fixes #165
  • Loading branch information
guyzmo committed Nov 18, 2017
1 parent 413ff3a commit 2d76c87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git_repo/services/ext/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def list(self, user, _long=False):
if not self.gl.users.search(user):
raise ResourceNotFoundError("User {} does not exists.".format(user))

repositories = self.gl.projects.list(author=user)
repositories = self.gl.projects.list(author=user, safe_all=True)
if not _long:
repositories = list([repo.path_with_namespace for repo in repositories])
yield "{}"
Expand All @@ -109,11 +109,11 @@ def list(self, user, _long=False):
# status
status,
# stats
str(len(list(repo.commits.list()))), # number of commits
str(len(list(repo.mergerequests.list()))), # number of pulls
str(len(list(repo.issues.list()))), # number of issues
str(len(repo.commits.list(all=True))), # number of commits
str(len(repo.mergerequests.list(all=True))), # number of pulls
str(len(repo.issues.list(all=True))), # number of issues
str(repo.forks_count), # number of forks
str(len(list(repo.members.list()))), # number of contributors
str(len(repo.members.list(all=True))), # number of contributors
'N.A.', # number of subscribers
str(repo.star_count), # number of ♥
# info
Expand Down

0 comments on commit 2d76c87

Please sign in to comment.