diff --git a/.gitignore b/.gitignore index 4416a9c..c483c8f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ SQLHandler/config.json .vscode/arduino.json .gitignore .vscode/c_cpp_properties.json -venv/ \ No newline at end of file +venv/ +__pycache__/ \ No newline at end of file diff --git a/Server/api/__pycache__/__init__.cpython-312.pyc b/Server/api/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 92444b2..0000000 Binary files a/Server/api/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/Server/api/__pycache__/admin.cpython-312.pyc b/Server/api/__pycache__/admin.cpython-312.pyc deleted file mode 100644 index 1f5c6e0..0000000 Binary files a/Server/api/__pycache__/admin.cpython-312.pyc and /dev/null differ diff --git a/Server/api/__pycache__/apps.cpython-312.pyc b/Server/api/__pycache__/apps.cpython-312.pyc deleted file mode 100644 index e900537..0000000 Binary files a/Server/api/__pycache__/apps.cpython-312.pyc and /dev/null differ diff --git a/Server/api/__pycache__/models.cpython-312.pyc b/Server/api/__pycache__/models.cpython-312.pyc deleted file mode 100644 index 394a79c..0000000 Binary files a/Server/api/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/Server/api/__pycache__/urls.cpython-312.pyc b/Server/api/__pycache__/urls.cpython-312.pyc deleted file mode 100644 index 49d85a0..0000000 Binary files a/Server/api/__pycache__/urls.cpython-312.pyc and /dev/null differ diff --git a/Server/api/__pycache__/views.cpython-312.pyc b/Server/api/__pycache__/views.cpython-312.pyc deleted file mode 100644 index 4934d37..0000000 Binary files a/Server/api/__pycache__/views.cpython-312.pyc and /dev/null differ diff --git a/Server/api/views.py b/Server/api/views.py index 83620f5..41de248 100644 --- a/Server/api/views.py +++ b/Server/api/views.py @@ -14,7 +14,7 @@ def client(request): @api_view(['POST']) def temperature(request): - client = Clients.objects.get(hostname=request.data['hostname']) + client = Client.objects.get(hostname=request.data['hostname']) temp = Temperature( temperature=request.data["temperature"], humidity=request.data["humidity"], @@ -26,7 +26,7 @@ def temperature(request): @api_view(['POST']) def moisture(request): - client = Clients.objects.get(hostname=request.data['hostname']) + client = Client.objects.get(hostname=request.data['hostname']) temp = Moisture( moisture=request.data['moistrue'], created_by=client @@ -36,7 +36,7 @@ def moisture(request): @api_view(['POST']) def waterlevel(request): - client = Clients.objects.get(hostname=request.data['hostname']) + client = Client.objects.get(hostname=request.data['hostname']) temp = WaterLevel( waterlevel=request.data['waterlevel'], created_by=client diff --git a/Server/core/__pycache__/__init__.cpython-312.pyc b/Server/core/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 6cbfe37..0000000 Binary files a/Server/core/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/Server/core/__pycache__/settings.cpython-312.pyc b/Server/core/__pycache__/settings.cpython-312.pyc deleted file mode 100644 index ae0a075..0000000 Binary files a/Server/core/__pycache__/settings.cpython-312.pyc and /dev/null differ diff --git a/Server/core/__pycache__/urls.cpython-312.pyc b/Server/core/__pycache__/urls.cpython-312.pyc deleted file mode 100644 index d56e37b..0000000 Binary files a/Server/core/__pycache__/urls.cpython-312.pyc and /dev/null differ diff --git a/Server/core/__pycache__/wsgi.cpython-312.pyc b/Server/core/__pycache__/wsgi.cpython-312.pyc deleted file mode 100644 index a80735f..0000000 Binary files a/Server/core/__pycache__/wsgi.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/__init__.cpython-312.pyc b/Server/userinterface/__pycache__/__init__.cpython-312.pyc deleted file mode 100644 index 46c3cd6..0000000 Binary files a/Server/userinterface/__pycache__/__init__.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/admin.cpython-312.pyc b/Server/userinterface/__pycache__/admin.cpython-312.pyc deleted file mode 100644 index 41ef653..0000000 Binary files a/Server/userinterface/__pycache__/admin.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/apps.cpython-312.pyc b/Server/userinterface/__pycache__/apps.cpython-312.pyc deleted file mode 100644 index 938dc1d..0000000 Binary files a/Server/userinterface/__pycache__/apps.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/models.cpython-312.pyc b/Server/userinterface/__pycache__/models.cpython-312.pyc deleted file mode 100644 index 9dc1a4a..0000000 Binary files a/Server/userinterface/__pycache__/models.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/urls.cpython-312.pyc b/Server/userinterface/__pycache__/urls.cpython-312.pyc deleted file mode 100644 index 2279755..0000000 Binary files a/Server/userinterface/__pycache__/urls.cpython-312.pyc and /dev/null differ diff --git a/Server/userinterface/__pycache__/views.cpython-312.pyc b/Server/userinterface/__pycache__/views.cpython-312.pyc deleted file mode 100644 index eeaf8de..0000000 Binary files a/Server/userinterface/__pycache__/views.cpython-312.pyc and /dev/null differ