~tardypad/dotfiles

ba06b7490a70c2011970e1b6c4be2109ca81b45a — Damien Tardy-Panis 4 months ago a6dbb1a
Fix time-tracker-sum with day option change
1 files changed, 3 insertions(+), 1 deletions(-)

M files/configs/zsh/functions/time-tracker-sum
M files/configs/zsh/functions/time-tracker-sum => files/configs/zsh/functions/time-tracker-sum +3 -1
@@ 6,10 6,12 @@

local day="$1"

[ -n "${day}" ] || day="$( date +%Y-%m-%d )"

local total

total=$(
  time-tracker -t overview "$day" \
  time-tracker -t -d "$day" overview \
    | cut -f 2 \
    | sum
)