mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Fix
This commit is contained in:
@@ -68,7 +68,7 @@ async def check_books(*args, **kwargs) -> bool:
|
||||
1, PAGE_SIZE, uploaded_gte=uploaded_gte, uploaded_lte=uploaded_lte
|
||||
)
|
||||
|
||||
for page_number in range(1, books_page.total_pages + 1):
|
||||
for page_number in range(1, books_page.pages + 1):
|
||||
await check_books_page.kiq(
|
||||
page_number, uploaded_gte=uploaded_gte, uploaded_lte=uploaded_lte
|
||||
)
|
||||
|
||||
@@ -15,9 +15,11 @@ T = TypeVar("T")
|
||||
class Page(BaseModel, Generic[T]):
|
||||
items: list[T]
|
||||
total: int
|
||||
page: int
|
||||
|
||||
size: int
|
||||
total_pages: int
|
||||
|
||||
page: int
|
||||
pages: int
|
||||
|
||||
|
||||
class BaseBookInfo(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user