From c3c6cfedbe5882dc7bb349e4c961f393924b4aef Mon Sep 17 00:00:00 2001 From: A Farzat Date: Wed, 20 Aug 2025 18:16:05 +0300 Subject: Make subscriptions storable in the database --- data-collection/components/subscriptions/typing.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'data-collection/components/subscriptions/typing.py') 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] -- cgit v1.2.3-70-g09d2