mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Update books by sequence handler
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from datetime import date
|
||||
from typing import Optional
|
||||
|
||||
from fastapi_pagination import Page
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
@@ -29,3 +30,7 @@ class Book(BaseModel):
|
||||
authors: list[Author]
|
||||
translators: list[Author]
|
||||
annotation_exists: bool
|
||||
|
||||
|
||||
class PageWithSequence(Page[Book]):
|
||||
sequence: Sequence | None
|
||||
|
||||
Reference in New Issue
Block a user