From f099db359996588c70fb3f8fe5f413c5d604394f Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 28 Dec 2020 10:34:28 +0000 Subject: only register the exercises you actually did --- workout | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'workout') 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{ -- cgit v1.2.3