Skip to content

Commit

Permalink
fix: fix wrong file pagination
Browse files Browse the repository at this point in the history
closes #100
  • Loading branch information
sgratzl committed Jun 11, 2024
1 parent bae0307 commit 2606e1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slack_cleaner2/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,11 +1327,11 @@ def list_paging_page():
yield from page
if not meta:
return
total = meta.get("total", 1)
current = meta.get("page", 1)
if current >= total:
total_pages = meta.get("pages", 1)
current_page = meta.get("page", 1)
if current_page >= total_pages:
break
next_page = current + 1
next_page = current_page + 1

def safe_paginated_api(self, fun: Callable, attr: str, scopes: Optional[List[str]] = None, method: Optional[str] = None) -> Any:
"""
Expand Down

0 comments on commit 2606e1a

Please sign in to comment.