mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Restore pagination
This commit is contained in:
@@ -23,10 +23,12 @@
|
||||
{% endif %}
|
||||
|
||||
{% if method.type.cardinality == "list" %}
|
||||
return [
|
||||
{% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }}( self.__requester, element, lazy = True )
|
||||
for element in data
|
||||
]
|
||||
return PaginatedList.PaginatedList(
|
||||
{% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }},
|
||||
self.__requester,
|
||||
headers,
|
||||
data
|
||||
)
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user