Remove __pycache__ and fix typo

main
Ol86 2 years ago
parent 11a009330d
commit cf493793c1

1
.gitignore vendored

@ -3,3 +3,4 @@ SQLHandler/config.json
.gitignore
.vscode/c_cpp_properties.json
venv/
__pycache__/

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

Loading…
Cancel
Save