From 5527c34488ca67c8efcdad0c5b6f70edb1bdbff4 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Fri, 8 Jul 2022 15:07:38 +1200 Subject: [PATCH] Fix best records for Exercises --- Exercises.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exercises.tsx b/Exercises.tsx index a14cac4..3c3e95a 100644 --- a/Exercises.tsx +++ b/Exercises.tsx @@ -12,7 +12,7 @@ export default function Exercises() { const refresh = async () => { const [result] = await db.executeSql( - `SELECT name, reps, unit, MAX(weight) AS weight + `SELECT name, MAX(reps) as reps, unit, MAX(weight) AS weight FROM sets WHERE name LIKE ? GROUP BY name;`,