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