Update books by sequence handler

This commit is contained in:
2023-06-06 20:32:36 +02:00
parent fa04533a74
commit 52725ae126
2 changed files with 18 additions and 3 deletions

View File

@@ -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