#47 Add per_page and page parameters to list_issues method
Opened a year ago by spichugi. Modified a year ago
spichugi/libpagure i46  into  master

file modified
+8
@@ -385,6 +385,8 @@ 

          no_stones=None,

          since=None,

          order=None,

+         page=None,

+         per_page=None,

      ):

          """

          List all issues of a project.
@@ -402,6 +404,8 @@ 

              Y-M-D

          :param order: Set the ordering of the issues. This can be asc or desc.

              Default: desc

+         :param page: Specifies which page to return (defaults to: 1)

+         :param per_page: The number of projects to return per page. The maximum is 100. filers the tags of the issuesfilers the tags of the issues

          :return:

          """

          request_url = "{}issues".format(self.create_basic_url())
@@ -425,6 +429,10 @@ 

              payload["since"] = since

          if order is not None:

              payload["order"] = order

+         if page is not None:

+             payload["page"] = page

+         if per_page is not None:

+             payload["per_page"] = per_page

  

          return_value = self._call_api(request_url, params=payload)

  

no initial comment
Metadata