Skip to content

Commit

Permalink
say when we already have enough tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Jan 26, 2023
1 parent e19c430 commit c0e56f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Picker.omnifocusjs/Resources/pick.js
Expand Up @@ -27,7 +27,8 @@
this.currentlyFlagged = this.tasks.filter((t) => t.flagged).length;
}
enact() {
if (this.currentlyFlagged > this.wantFlagged) {
if (this.currentlyFlagged >= this.wantFlagged) {
console.log(`we have ${this.currentlyFlagged} tasks, and want ${this.wantFlagged}, so we're just done.`);
return;
}
let now = new Date();
Expand Down
3 changes: 2 additions & 1 deletion Picker.omnifocusjs/Resources/pick.ts
Expand Up @@ -44,7 +44,8 @@
}

enact(): void {
if (this.currentlyFlagged > this.wantFlagged) {
if (this.currentlyFlagged >= this.wantFlagged) {
console.log(`we have ${this.currentlyFlagged} tasks, and want ${this.wantFlagged}, so we're just done.`);
return;
}

Expand Down

0 comments on commit c0e56f2

Please sign in to comment.