Update to v 0.4.0 #6
@@ -785,6 +785,7 @@ def get_status(unit_id: str, db: Session = Depends(get_db)):
|
|||||||
"unit_id": unit_id,
|
"unit_id": unit_id,
|
||||||
"last_seen": status.last_seen.isoformat() if status.last_seen else None,
|
"last_seen": status.last_seen.isoformat() if status.last_seen else None,
|
||||||
"measurement_state": status.measurement_state,
|
"measurement_state": status.measurement_state,
|
||||||
|
"measurement_start_time": status.measurement_start_time.isoformat() if status.measurement_start_time else None,
|
||||||
"lp": status.lp,
|
"lp": status.lp,
|
||||||
"leq": status.leq,
|
"leq": status.leq,
|
||||||
"lmax": status.lmax,
|
"lmax": status.lmax,
|
||||||
@@ -843,6 +844,7 @@ def upsert_status(unit_id: str, payload: StatusPayload, db: Session = Depends(ge
|
|||||||
"unit_id": unit_id,
|
"unit_id": unit_id,
|
||||||
"last_seen": status.last_seen.isoformat(),
|
"last_seen": status.last_seen.isoformat(),
|
||||||
"measurement_state": status.measurement_state,
|
"measurement_state": status.measurement_state,
|
||||||
|
"measurement_start_time": status.measurement_start_time.isoformat() if status.measurement_start_time else None,
|
||||||
"lp": status.lp,
|
"lp": status.lp,
|
||||||
"leq": status.leq,
|
"leq": status.leq,
|
||||||
"lmax": status.lmax,
|
"lmax": status.lmax,
|
||||||
|
|||||||
Reference in New Issue
Block a user