mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
dom: Added 'dom.tracked.N.duration' support
This commit is contained in:
parent
b5bcefb133
commit
6e01aa5c68
1 changed files with 7 additions and 0 deletions
|
@ -144,6 +144,13 @@ bool domGet (
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// dom.active.duration
|
||||||
|
if (pig.skipLiteral ("duration"))
|
||||||
|
{
|
||||||
|
value = Duration (tracked[count - n].range.total ()).formatISO ();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
if (pig.skipLiteral ("tag.") &&
|
if (pig.skipLiteral ("tag.") &&
|
||||||
pig.getDigits (n))
|
pig.getDigits (n))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue