GothenburgBitFactory / tasklib

A Python library for interacting with taskwarrior databases.
http://tasklib.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
146 stars 27 forks source link

Make filter method take a string, eg for use with `tags.contains:foo` #117

Open smemsh opened 2 years ago

smemsh commented 2 years ago

The example in README says this works:

tw.tasks.pending().filter(tags__contains='testing')

but actually in deserialize_tags(), which ends up getting this, there is expectation for a list parameter, so not sure how the example from README ever worked (!)

This patch changes .filter() method to support a string argument also, which in that case is passed through unchanged. This makes the README example work again.

Fixes #116

smemsh commented 1 year ago

@tbabej since you did a release, should I conclude this patch will not be merged?