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

DQL for tasks: fetching incorrect results #2458

Open
RishiVora opened this issue Oct 16, 2024 · 0 comments
Open

DQL for tasks: fetching incorrect results #2458

RishiVora opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working.

Comments

@RishiVora
Copy link

RishiVora commented Oct 16, 2024

What I expected

I am trying to create a DQL query to fetch tasks that are:

  1. due today
  2. start today
  3. start earlier than today

What is happening

But it also shows tasks that are overdue as well as the ones due in future.

image

I also tried splitting up the query into two.

image

still it does not work as intended.

DQL

  1. single query
TASK
WHERE !completed AND (start <= date(today) OR due = date(today)) AND due != null AND contains(text, "#task")
GROUP BY file.link
  1. the split up query
TASK
WHERE !completed AND due = date(today) AND due != null AND contains(text, "#task")
GROUP BY file.link
TASK
WHERE !completed AND start <= date(today) AND due != null AND contains(text, "#task")
GROUP BY file.link

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.6.7

OS

Windows

@RishiVora RishiVora added the bug Something isn't working. label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant