migrate db.find_ratings to SQLAlchemy

This commit is contained in:
ducklet 2023-03-28 21:50:14 +02:00
parent d4933bf1a6
commit 1a3528e096
3 changed files with 54 additions and 55 deletions

View file

@ -12,8 +12,8 @@ from typing import (
Literal,
Mapping,
Type,
TypeVar,
TypedDict,
TypeVar,
Union,
get_args,
get_origin,
@ -318,6 +318,8 @@ class Movie:
self._is_lazy = False
movies = Movie.__table__
_RelationSentinel = object()
"""Mark a model field as containing external data.
@ -372,6 +374,8 @@ class Rating:
)
ratings = Rating.__table__
Access = Literal[
"r", # read
"i", # index