blob: 3e49d53f32e43b9f95e3aebd11887ae42a36dd93 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
from datetime import datetime
from typing import TypedDict, List
from bson.objectid import ObjectId
from components.videos import VideoTuple
class SubsDict(TypedDict):
_id: str
link: str
title: str
time_between_fetches: int # In seconds.
last_fetch: datetime
last_video_update: datetime
last_viewed: datetime
videos: List[VideoTuple]
subscribers: List[ObjectId]
|