add setnumber, actually insert sets
This commit is contained in:
parent
bd3b3c2b95
commit
dd2151c958
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue