We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think context should be supported.
As a workaround I have code similar to this:
from tasklib import TaskWarrior tw = TaskWarrior(data_location='~/.task') context = tw.execute_command(["_get","rc.context"])[0] if context: context_read = tw.execute_command(["_get","rc.context." + context + ".read"])[0] context_filter = '+PENDING and ( ' + context_read + ')' nexttasks = tw.tasks.filter(context_filter) else: nexttasks = tw.tasks.pending()
The text was updated successfully, but these errors were encountered:
As a side remark:
tw.tasks.pending().filter(context_filter)
would not work as it does not do an and operation but an or operation instead - not what I would expect.
Sorry, something went wrong.
No branches or pull requests
I think context should be supported.
As a workaround I have code similar to this:
The text was updated successfully, but these errors were encountered: