Fitness historie #95
|
|
@ -377,8 +377,8 @@ def build_vital_signs_matrix_chart_payload(profile_id: str, days: int) -> Dict[s
|
|||
cur.execute(
|
||||
"""SELECT systolic, diastolic
|
||||
FROM blood_pressure_log
|
||||
WHERE profile_id=%s AND date >= %s
|
||||
ORDER BY date DESC, time DESC
|
||||
WHERE profile_id=%s AND measured_at::date >= %s::date
|
||||
ORDER BY measured_at DESC
|
||||
LIMIT 1""",
|
||||
(profile_id, cutoff),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user