container: plugins: finance: timew_to_timeclock: print all tags

This commit is contained in:
2024-08-29 00:51:10 -07:00
parent d4d9368c4f
commit 3be93d8e97

View File

@@ -100,12 +100,24 @@ function main()
break break
default: default:
# All others are considered "real" tags # All others are considered "real" tags
tags=substr($0, 5) tag=substr($0, 5)
sub(/=/, ":", tags) # Reconstruct to hledger tag format
# TODO: push to an array for more tags # Reconstruct to hledger tag format
sub(/=/, ":", tag)
tags[tag]=tag ", "
break break
} }
} END { printf " " account " " description " ; " comment ", id:" _id ", " tags "\n"}' }
END {
printf " " account " " description " ; " comment ", id:" _id ", "
for (t in tags)
{
i++
printf t ", "
}
printf "\n"
}'
__format_time "o" "$_end" __format_time "o" "$_end"
echo echo
done done