@aicupa/plugin-balance 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/service.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicupa/plugin-balance",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Show time balance ratio between temporary and current tasks",
5
5
  "main": "./service",
6
6
  "view": "./view",
package/service.js CHANGED
@@ -43,10 +43,9 @@ module.exports = createPlugin((api) => {
43
43
  n.todo?.done &&
44
44
  n.todo?.start &&
45
45
  n.todo?.end &&
46
- n.todo.end > n.todo.start
46
+ n.todo.end > n.todo.start &&
47
+ !n.todo.keep
47
48
  ) {
48
- if (n.todo.keep) continue;
49
-
50
49
  let end = n.todo.end;
51
50
  let start = n.todo.start;
52
51