Skip to content

Keyset Pagination supported for repository_tree interface? #1902

Answered by JohnVillalovos
AnansiRafa asked this question in Q&A
Discussion options

You must be logged in to vote

If using project.repository_tree(as_list=False) then it should support that.

try:
links = result.links
if links:
next_url = links["next"]["url"]
else:
next_url = requests.utils.parse_header_links(result.headers["links"])[
0
]["url"]
self._next_url = next_url

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AnansiRafa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants