diff --git a/.gitignore b/.gitignore index bbab3de..b3c90c0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ db.sqlite3 demo.db demo.db-shm demo.db-wal +__pycache__/ diff --git a/iotDashboard/__pycache__/__init__.cpython-311.pyc b/iotDashboard/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 72f2c2c..0000000 Binary files a/iotDashboard/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/apps.cpython-311.pyc b/iotDashboard/__pycache__/apps.cpython-311.pyc deleted file mode 100644 index 2bd9865..0000000 Binary files a/iotDashboard/__pycache__/apps.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/forms.cpython-311.pyc b/iotDashboard/__pycache__/forms.cpython-311.pyc deleted file mode 100644 index 48a2e62..0000000 Binary files a/iotDashboard/__pycache__/forms.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/getInfoFromDevices.cpython-311.pyc b/iotDashboard/__pycache__/getInfoFromDevices.cpython-311.pyc deleted file mode 100644 index a37e53b..0000000 Binary files a/iotDashboard/__pycache__/getInfoFromDevices.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/models.cpython-311.pyc b/iotDashboard/__pycache__/models.cpython-311.pyc deleted file mode 100644 index 9c4ab47..0000000 Binary files a/iotDashboard/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/settings.cpython-311.pyc b/iotDashboard/__pycache__/settings.cpython-311.pyc deleted file mode 100644 index ed36fdd..0000000 Binary files a/iotDashboard/__pycache__/settings.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/tasks.cpython-311.pyc b/iotDashboard/__pycache__/tasks.cpython-311.pyc deleted file mode 100644 index 3e86615..0000000 Binary files a/iotDashboard/__pycache__/tasks.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/urls.cpython-311.pyc b/iotDashboard/__pycache__/urls.cpython-311.pyc deleted file mode 100644 index fc30403..0000000 Binary files a/iotDashboard/__pycache__/urls.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/views.cpython-311.pyc b/iotDashboard/__pycache__/views.cpython-311.pyc deleted file mode 100644 index fa574a5..0000000 Binary files a/iotDashboard/__pycache__/views.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/__pycache__/wsgi.cpython-311.pyc b/iotDashboard/__pycache__/wsgi.cpython-311.pyc deleted file mode 100644 index b5c238e..0000000 Binary files a/iotDashboard/__pycache__/wsgi.cpython-311.pyc and /dev/null differ diff --git a/iotDashboard/tasks.py b/iotDashboard/tasks.py index 459d904..44e29ab 100644 --- a/iotDashboard/tasks.py +++ b/iotDashboard/tasks.py @@ -105,7 +105,7 @@ def insert_data(data, sensor_type): except Exception as e: print(f"Failed to insert data: {e}") -@periodic_task(crontab(minute='*/1')) +@periodi c_task(crontab(minute='*/1')) def fetch_data_from_all_devices(): """Fetch and insert data for all devices based on their protocol.""" devices = Device.objects.all()