aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-12-28 10:34:28 +0000
committerrodri <rgl@antares-labs.eu>2020-12-28 10:34:28 +0000
commitf099db359996588c70fb3f8fe5f413c5d604394f (patch)
treedd3433a8df5ceb335c8b9d229da07f2cf1a54e52
parent7bde7d42c11d1a4cb08caf077106d2a48f07fa6f (diff)
downloadrcfitness-f099db359996588c70fb3f8fe5f413c5d604394f.tar.gz
rcfitness-f099db359996588c70fb3f8fe5f413c5d604394f.tar.bz2
rcfitness-f099db359996588c70fb3f8fe5f413c5d604394f.zip
only register the exercises you actually did
-rwxr-xr-xworkout3
1 files changed, 2 insertions, 1 deletions
diff --git a/workout b/workout
index 13ffae4..8688035 100755
--- a/workout
+++ b/workout
@@ -83,7 +83,8 @@ fn setupreps{
fn mkreport{
echo '#'exercise,reps,sets >$wdir/$today
for(i in `{seq 1 $#session})
- echo $exercises($session($i))^,^$reps($i)^,^$sets($i) >>$wdir/$today
+ if(! ~ $sets($i) 0)
+ echo $exercises($session($i))^,^$reps($i)^,^$sets($i) >>$wdir/$today
}
fn start{