Updated to use old timetracker.py (slightly different output format than Rust program)
This commit is contained in:
parent
7f4ab49c91
commit
d86822c40e
|
@ -57,8 +57,8 @@ if [[ -f ${DATE} ]]; then
|
||||||
subtotal=0
|
subtotal=0
|
||||||
for pattern in "${KEYS[@]}"; do
|
for pattern in "${KEYS[@]}"; do
|
||||||
#echo "pattern=${pattern}" >&2
|
#echo "pattern=${pattern}" >&2
|
||||||
$grep -- "\[${pattern}\]" ${DATE} | timetracker
|
$grep -- "\[${pattern}\]" ${DATE} | python timetracker.py
|
||||||
subtotal=$(bc <<< "scale=2; ${subtotal} + $($grep -- "\[${pattern}\]" ${DATE} | timetracker | $grep "Section" | $grep -Po '\d+\.\d+hrs' | tr -d '[hrs]')")
|
subtotal=$(bc <<< "scale=2; ${subtotal} + $($grep -- "\[${pattern}\]" ${DATE} | python timetracker.py | $grep "Section" | $grep -Po '\d+\.\d+hrs' | tr -d '[hrs]')")
|
||||||
printf "Subtotal: %3.2fhrs\n" ${subtotal}
|
printf "Subtotal: %3.2fhrs\n" ${subtotal}
|
||||||
echo
|
echo
|
||||||
if [[ "${WHOLE}x" == "x" ]]; then
|
if [[ "${WHOLE}x" == "x" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue