Skip to content

Commit

Permalink
Include pagination code
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Feb 12, 2025
1 parent 08725be commit 99a89b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Pagination

Pagination allows you to chop the resulting components into chunks of a certain size.

.. code-block: python
.. code-block:: python
# we get a calendar with 10 events and 2 events per page
>>> ten_events = recurring_ical_events.example_calendar("event_10_times")
Expand All @@ -309,7 +309,7 @@ Pagination allows you to chop the resulting components into chunks of a certain
If you run a web service and you would like to continue pagination after a certain page,
this can be done, too. Just hand someone the ``next_page_id`` and continue from there on.

.. code-block: python
.. code-block:: python
# resume the same query from the next page
>>> pages = recurring_ical_events.of(ten_events).paginate(2, next_page_id = last_page.next_page_id)
Expand Down

0 comments on commit 99a89b6

Please sign in to comment.