Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracker doesn't accept penalty for missing values in task.done #391

Open
ROODAY opened this issue Oct 23, 2024 · 0 comments
Open

Tracker doesn't accept penalty for missing values in task.done #391

ROODAY opened this issue Oct 23, 2024 · 0 comments

Comments

@ROODAY
Copy link

ROODAY commented Oct 23, 2024

Expected Behavior

Tracking counts of task.done should work even if the task hasn't been done yet.

Current Behavior

I'm trying to track tasks like so:

searchType: task.done
searchTarget: Did you meditate?
penalty: 0
startDate: 2024-09-29
endDate: 2024-10-05
summary:
    template: "• Meditated {{sum(setMissingValues(dataset(0), 0))::i}} times"

However, during that date range, there is no instance of the task being done. I would expect penalty or setMissingValues to cover that case, but I get the "No y value found" error.

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a task.done query
  2. In the search target range, don't complete the task
  3. Get the error

Context

I want to track counts of tasks being completed even when the count is 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant