diff options
| author | A Farzat <a@farzat.xyz> | 2025-08-20 18:16:05 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-08-20 18:16:05 +0300 |
| commit | c3c6cfedbe5882dc7bb349e4c961f393924b4aef (patch) | |
| tree | ef83987ccec3d80ffa20a7b15de4b2b6974607b9 /data-collection/components/subscriptions/typing.py | |
| parent | ebd5d5b9c0c18d8905a4aafb8faf5f25710b9aee (diff) | |
| download | csca5028-c3c6cfedbe5882dc7bb349e4c961f393924b4aef.tar.gz csca5028-c3c6cfedbe5882dc7bb349e4c961f393924b4aef.zip | |
Make subscriptions storable in the database
Diffstat (limited to 'data-collection/components/subscriptions/typing.py')
| -rw-r--r-- | data-collection/components/subscriptions/typing.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data-collection/components/subscriptions/typing.py b/data-collection/components/subscriptions/typing.py index eebcece..8f2a298 100644 --- a/data-collection/components/subscriptions/typing.py +++ b/data-collection/components/subscriptions/typing.py @@ -4,9 +4,10 @@ from bson.objectid import ObjectId from components.videos import VideoTuple class SubsDict(TypedDict): - id: str + _id: str link: str - time_between_fetches: int # In hours. - last_update: datetime + time_between_fetches: int # In minutes. + last_fetch: datetime + last_video_update: datetime videos: List[VideoTuple] subscribers: List[ObjectId] |
