New TGRM search implementation

This commit is contained in:
2021-12-05 23:54:50 +03:00
parent 5fbe26c0f2
commit 7e825d099b
8 changed files with 91 additions and 74 deletions

View File

@@ -1,4 +1,5 @@
from typing import Optional
from datetime import date
from pydantic import BaseModel
@@ -44,6 +45,9 @@ class AuthorBook(BaseModel):
title: str
lang: str
file_type: str
available_types: list[str]
uploaded: date
annotation_exists: bool
class Config(ORJSONConfig):
pass