add setnumber, actually insert sets

This commit is contained in:
ida schmidt 2024-11-15 00:20:19 +00:00
parent bd3b3c2b95
commit dd2151c958

View file

@ -119,14 +119,14 @@ insert() {
local command="$1"; shift
case $command in
newset)
echo "
psql -d ${dbname} <<<\"
psql -qd ${dbname} <<<"
INSERT INTO ${routine[$workingroutine]}
(date, machine, weight, reps)
(date, machine, weight, setno, reps)
VALUES
('${currentdate}',
'${machine[${workingmachine}]}',
'${weight}',
'${setnumber}',
'${reps}');
";;
esac