Skip to content

Commit 74ec951

Browse files
author
Gauvain Pocentek
committed
add a pagination example
1 parent 0149020 commit 74ec951

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitlab.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,3 +603,7 @@ def Tag(self, id=None, **kwargs):
603603
# and close them all
604604
issue.closed = 1
605605
issue.save()
606+
607+
# get the first 10 groups (pagination)
608+
for g in gl.Group(page=1, per_page=10):
609+
print g

0 commit comments

Comments
 (0)