diff options
| author | A Farzat <a@farzat.xyz> | 2025-10-11 09:15:07 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2025-10-11 09:15:07 +0300 |
| commit | 3145e87a434552fdf93a17a995c0f5bd68e8aa24 (patch) | |
| tree | dae29008ccb03a1b47f5474346639e81b7273852 /data_collector/__main__.py | |
| parent | 5bbd9bda00e861f72f42965d407ada3ea6f5760e (diff) | |
| download | csca5028-3145e87a434552fdf93a17a995c0f5bd68e8aa24.tar.gz csca5028-3145e87a434552fdf93a17a995c0f5bd68e8aa24.zip | |
Organize data_collector to be similar to data_analyser
Diffstat (limited to 'data_collector/__main__.py')
| -rwxr-xr-x | data_collector/__main__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data_collector/__main__.py b/data_collector/__main__.py new file mode 100755 index 0000000..11791c2 --- /dev/null +++ b/data_collector/__main__.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +from time import sleep +from components.database import subscriptions + +from .utils import collect_data + +while True: + collect_data(subscriptions) + sleep(60) |
