mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-22 17:16:27 +01:00
add more endpoints
This commit is contained in:
parent
55862ba54d
commit
4af8161a11
3 changed files with 70 additions and 7 deletions
|
|
@ -71,4 +71,7 @@ def get_recent_sensor_data(db: Session, client_id: int, start_date: datetime, en
|
|||
SensorData.timestamp >= start_date,
|
||||
SensorData.timestamp < end_date, # Das end_date sollte exklusiv sein
|
||||
SensorData.clientid == client_id
|
||||
).all()
|
||||
).all()
|
||||
|
||||
def get_all_clients(db: Session) -> List[Client]:
|
||||
return db.query(Client).all()
|
||||
Loading…
Add table
Add a link
Reference in a new issue