From 9586f5df2d510c7b446f1965793b654b6d802375 Mon Sep 17 00:00:00 2001 From: Langenfeld Date: Mon, 7 Feb 2022 10:04:37 +0100 Subject: [PATCH] request /user/teams as paginated --- README.md | 2 +- gitea/apiobject.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebeef16..425ba73 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/gitea/apiobject.py b/gitea/apiobject.py index 022c9ff..9fd5174 100644 --- a/gitea/apiobject.py +++ b/gitea/apiobject.py @@ -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']: