kopia lustrzana https://github.com/Langenfeld/py-gitea
request /user/teams as paginated
rodzic
13f7cb6866
commit
9586f5df2d
|
@ -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.
|
||||
|
||||
|
|
|
@ -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']:
|
||||
|
|
Ładowanie…
Reference in New Issue