Skip to content

Commit

Permalink
docs: update example entry duration
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtread committed Jul 21, 2024
1 parent 7777a44 commit 6b55661
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test-vault/Dataview-Longest-Ordered-Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ for (const timekeep of timekeeps) {
let data = [];
for (const entry of timekeep.entries) {
let duration = 0;
if (entry.subEntries !== null) {
// Group entry total duration
duration = timekeepPlugin.getTotalDuration(
entry.subEntries,
currentTime
);
} else {
// Single entry duration
duration = timekeepPlugin.getEntryDuration(entry, currentTime);
}
let duration = timekeepPlugin.getEntryDuration(entry, currentTime);
// Push the entry
data.push([entry.name, duration]);
Expand Down

0 comments on commit 6b55661

Please sign in to comment.