diff --git a/ViewWeightGraph.tsx b/ViewWeightGraph.tsx index 73c99bb..f21a25c 100644 --- a/ViewWeightGraph.tsx +++ b/ViewWeightGraph.tsx @@ -28,8 +28,8 @@ export default function ViewWeightGraph() { weightRepo .createQueryBuilder() .select("STRFTIME('%Y-%m-%d', created)", "created") + .addSelect("AVG(value) as value") .addSelect("unit") - .addSelect("value") .where("DATE(created) >= DATE('now', 'weekday 0', :difference)", { difference, })