request /user/teams as paginated

pull/15/head
Langenfeld 2022-02-07 10:04:37 +01:00
rodzic 13f7cb6866
commit 9586f5df2d
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
# py-gitea
A very simple API client for Gitea 1.14.x
A very simple API client for Gitea > 1.16.1
This has been somewhat tested (and used), so most things should work as expected.

Wyświetl plik

@ -189,7 +189,7 @@ class User(ApiObject):
def get_teams(self) -> List['Team']:
url = f"/user/teams"
results = self.gitea.requests_get(url, sudo=self)
results = self.gitea.requests_get_paginated(url, sudo=self)
return [Team.parse_response(self.gitea, result) for result in results]
def get_accessible_repos(self) -> List['Repository']: