You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to retrieve all Event instances with a specific category, I must use a filter like this:
categories/any(a:a eq 'Billable')
There seems to be no way to express this in a Query. .iterable() and .any() force me to specify an attribute, which ends up in the filter (e.g. categories/any(a:a/someattribute eq 'Billable')), breaking the query.
Is there a different way to specify a filter like this? Maybe the attribute should be made optional...? I tried looking through utils.py but the filter mechanics look pretty obscure.
Edit: I see that I can pass a literal string instead of a Query object to get_events, so I guess I can use that. Still, it would be nice if Query could handle this case properly.
The text was updated successfully, but these errors were encountered:
When I want to retrieve all Event instances with a specific category, I must use a filter like this:
There seems to be no way to express this in a Query.
.iterable()
and.any()
force me to specify an attribute, which ends up in the filter (e.g.categories/any(a:a/someattribute eq 'Billable')
), breaking the query.Is there a different way to specify a filter like this? Maybe the attribute should be made optional...? I tried looking through utils.py but the filter mechanics look pretty obscure.
Edit: I see that I can pass a literal string instead of a Query object to
get_events
, so I guess I can use that. Still, it would be nice if Query could handle this case properly.The text was updated successfully, but these errors were encountered: