diff options
| author | A Farzat <a@farzat.xyz> | 2025-08-19 19:49:21 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-08-19 19:49:21 +0300 |
| commit | ebd5d5b9c0c18d8905a4aafb8faf5f25710b9aee (patch) | |
| tree | ca52edbaeb610a3d3d9c33a3510629a675bd9807 /data-collection/components/subscriptions/typing.py | |
| parent | 4b14119c651e3a7ce9425d015ccde26765b93e91 (diff) | |
| download | csca5028-ebd5d5b9c0c18d8905a4aafb8faf5f25710b9aee.tar.gz csca5028-ebd5d5b9c0c18d8905a4aafb8faf5f25710b9aee.zip | |
Add a Subscription dataclass
Diffstat (limited to 'data-collection/components/subscriptions/typing.py')
| -rw-r--r-- | data-collection/components/subscriptions/typing.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/data-collection/components/subscriptions/typing.py b/data-collection/components/subscriptions/typing.py new file mode 100644 index 0000000..eebcece --- /dev/null +++ b/data-collection/components/subscriptions/typing.py @@ -0,0 +1,12 @@ +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 + time_between_fetches: int # In hours. + last_update: datetime + videos: List[VideoTuple] + subscribers: List[ObjectId] |
