Update small

This commit is contained in:
ferdzo
2024-10-10 00:13:27 +02:00
parent 61512ffc14
commit 4b895e3e3f
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ db.sqlite3
demo.db
demo.db-shm
demo.db-wal
__pycache__/

View File

@@ -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()