summaryrefslogtreecommitdiff
path: root/components/subscriptions/typing.py
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2025-08-21 09:41:56 +0300
committerA Farzat <a@farzat.xyz>2025-08-21 09:41:56 +0300
commit69bcc9822c82ee6d726c98deafbdd0a20527a55a (patch)
treee51ee23b3da922e1baf7bd57f5c724e928c70d86 /components/subscriptions/typing.py
parentb141aa29f28c4e4281415b97dac8fe548b128f9b (diff)
downloadcsca5028-69bcc9822c82ee6d726c98deafbdd0a20527a55a.tar.gz
csca5028-69bcc9822c82ee6d726c98deafbdd0a20527a55a.zip
Move components to root directory
Some components might be shared with other applications such as the data analyser later on.
Diffstat (limited to 'components/subscriptions/typing.py')
-rw-r--r--components/subscriptions/typing.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/subscriptions/typing.py b/components/subscriptions/typing.py
new file mode 100644
index 0000000..8f2a298
--- /dev/null
+++ b/components/subscriptions/typing.py
@@ -0,0 +1,13 @@
+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 minutes.
+ last_fetch: datetime
+ last_video_update: datetime
+ videos: List[VideoTuple]
+ subscribers: List[ObjectId]