diff options
| author | A Farzat <a@farzat.xyz> | 2025-08-18 12:40:48 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-08-18 12:40:48 +0300 |
| commit | 9de258844b128c38ce523aa4e3483adf33dc7bb2 (patch) | |
| tree | ec92e9b7adf84e0c01ded91038821c222b333d9d /data-collection | |
| parent | d73f2fd449533f054ac2b17ea7597c9114114b69 (diff) | |
| download | csca5028-9de258844b128c38ce523aa4e3483adf33dc7bb2.tar.gz csca5028-9de258844b128c38ce523aa4e3483adf33dc7bb2.zip | |
Define a basic prototype for a subscription
Diffstat (limited to 'data-collection')
| -rw-r--r-- | data-collection/components/subscriptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
