aboutsummaryrefslogtreecommitdiff
path: root/data_collector.py
diff options
context:
space:
mode:
Diffstat (limited to 'data_collector.py')
-rwxr-xr-xdata_collector.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/data_collector.py b/data_collector.py
deleted file mode 100755
index 485d8af..0000000
--- a/data_collector.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env python
-
-from time import sleep
-from datetime import datetime, timedelta, UTC
-from components.database import subscriptions
-from components.subscriptions.main import Subscription
-
-while True:
- for sub_dict in subscriptions.find():
- sub = Subscription(**sub_dict)
- if datetime.now(tz=UTC) - sub.last_fetch > timedelta(seconds=sub.time_between_fetches):
- sub.fetch()
- sleep(60)