From 9de258844b128c38ce523aa4e3483adf33dc7bb2 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 18 Aug 2025 12:40:48 +0300 Subject: Define a basic prototype for a subscription --- data-collection/components/subscriptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data-collection/components/subscriptions.py (limited to 'data-collection/components') diff --git a/data-collection/components/subscriptions.py b/data-collection/components/subscriptions.py new file mode 100644 index 0000000..31a0500 --- /dev/null +++ b/data-collection/components/subscriptions.py @@ -0,0 +1,8 @@ +from types import TypedDict +from datetime import datetime + +class SubscriptionDict(TypedDict): + id: str + link: str + time_between_fetches: float # In hours. + last_update: datetime -- cgit v1.2.3-70-g09d2