Skip to content

Commit

Permalink
- Updated: dismiss function
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesb committed Mar 24, 2021
1 parent c1a1c01 commit c5113cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
"typescript": "4.1.3"
},
"dependencies": {
"obsidian-daily-notes-interface": "^0.7.8"
}
}
5 changes: 5 additions & 0 deletions src/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export class Queue extends QueueBase {
}

let curRep = table.rows[0];
if (!curRep.isDue()) {
LogTo.Debug("No due repetition to dismiss.", true);
return
}

table.rows = table.rows.slice(1);
LogTo.Console("Dismissed repetition: " + this.getLinkWithoutBrackets(curRep.link), true);
await this.writeQueueTable(table);
Expand Down

0 comments on commit c5113cf

Please sign in to comment.