Fix best records for Exercises
This commit is contained in:
parent
b12b41b77e
commit
5527c34488
|
@ -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;`,
|
||||
|
|
Loading…
Reference in New Issue
Block a user