mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update parts.py
This commit is contained in:
parent
8590677e1d
commit
96bebd6dd1
1 changed files with 1 additions and 1 deletions
|
|
@ -55,4 +55,4 @@ def paginate(data: typing.Iterable, limit: int = 10) -> typing.Iterable:
|
|||
:return: sliced object
|
||||
:rtype: :obj:`typing.Iterable`
|
||||
"""
|
||||
return [data[x:x + limit] for x in range(0, len(data), 4)]
|
||||
return [data[x:x + limit] for x in range(0, len(data), limit)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue