add route to check state of latest IMDb movie import

This commit is contained in:
ducklet 2021-07-22 00:05:02 +02:00
parent 1fd592cb1d
commit fe5db535a9
4 changed files with 87 additions and 26 deletions

View file

@ -140,6 +140,17 @@ def utcnow():
return datetime.now().replace(tzinfo=timezone.utc)
@dataclass
class Progress:
_table: ClassVar[str] = "progress"
id: ULID = field(default_factory=ULID)
type: str = None
state: str = None
started: datetime = field(default_factory=utcnow)
stopped: Optional[str] = None
@dataclass
class Movie:
_table: ClassVar[str] = "movies"