From 15511bfba32685b7c67ca8886626076cdf3561ab Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Mon, 5 Jun 2017 08:49:04 +0200 Subject: [PATCH] Fix GitlabList.__len__ --- gitlab/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 57a91edcf..e6a151a87 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -819,7 +819,7 @@ def __iter__(self): return self def __len__(self): - return int(self._total_pages) + return int(self._total) def __next__(self): return self.next()