update host in .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-20 18:25:40 +02:00
parent 0b0ecc0dc9
commit b2708b6553
3 changed files with 5 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ type: ssh
name: default name: default
server: server:
host: nuc.home host: server.home
user: marco user: marco
ssh_key: ssh_key:
from_secret: ssh_key from_secret: ssh_key
@@ -26,7 +26,7 @@ steps:
- name: deploy - name: deploy
commands: commands:
- cd /home/marco/containers - cd /home/marco/containers
- docker-compose up --build -d sensor-web-v2 - docker compose up --build -d sensor-web-v2
trigger: trigger:
branch: branch:

2
.env
View File

@@ -1,2 +1,2 @@
MONGO_SERVER=nuc.home MONGO_SERVER=server.home
MONGO_DB=sensor_data MONGO_DB=sensor_data

View File

@@ -88,7 +88,7 @@ async def get_sensor_data(
} }
}, },
{"type": type}, {"type": type},
{"value": {"$ne": "NaN"}}, {"value": {"$ne": float("nan")}},
] ]
} }
}, },
@@ -122,6 +122,7 @@ async def get_sensor_data(
] ]
docs = [doc async for doc in collection.aggregate(pipeline)] docs = [doc async for doc in collection.aggregate(pipeline)]
print(docs)
return json.loads(json_util.dumps(docs)) return json.loads(json_util.dumps(docs))