fix: correct pulse range value

This commit is contained in:
2026-07-18 02:51:28 +02:00
parent a66d8f9e8e
commit 79653baae5
+1 -1
View File
@@ -330,7 +330,7 @@ def list_pulse(request: HttpRequest, days: int = 90):
@router.post("/pulse", response=PulseOut)
def record_pulse(request: HttpRequest, payload: PulseIn):
"""One reading per day: posting twice for the same day overwrites it."""
if not 20 <= payload.bpm <= 400:
if not 10 <= payload.bpm <= 400:
raise HttpError(422, "A pulse of that value is not plausible for a cat.")
day = payload.date or timezone.localdate()