Skip to content

Commit

Permalink
fixed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Jan 28, 2025
1 parent ca46c0a commit ad5ce48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def post(self, request, *args, **kwargs):
# Record the time when the request was received
time_received = datetime.datetime.now(datetime.timezone.utc)

if sensor_data:
if sensors_data:
return JsonResponse({"status": "success, but no sensor data found"}, status=200)

try:
Expand Down
4 changes: 2 additions & 2 deletions tests/stag/api-device-initial-station-info.http
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ content-type: application/json
{
"station": {
"time": "2025-01-07T11:23:23.439Z",
"device": "string",
"device": "initial_station_info_test",
"firmware": "string",
"model": 0,
"apikey": "initialStationInfoTest",
"apikey": "initial_station_info_test",

"sensor_list": [
{
Expand Down

0 comments on commit ad5ce48

Please sign in to comment.