Skip to content

Commit 96bf2b1

Browse files
author
Gauvain Pocentek
committed
never add page and per_page attributes to the objects
1 parent 928d4fa commit 96bf2b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def list(self, obj_class, **kwargs):
143143
l = [cls(self, item) for item in r.json]
144144
if kwargs:
145145
for k, v in kwargs.items():
146+
if k in ('page', 'per_page'):
147+
continue
146148
for obj in l:
147149
obj.__dict__[k] = v
148150
return l

0 commit comments

Comments
 (0)