We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b3961e commit 4f42c1eCopy full SHA for 4f42c1e
things/database.py
@@ -272,7 +272,8 @@ def get_tasks( # pylint: disable=R0914,R0917
272
status_filter: str = STATUS_TO_FILTER.get(status, "") # type: ignore
273
trashed_filter: str = TRASHED_TO_FILTER.get(trashed, "") # type: ignore
274
type_filter: str = TYPE_TO_FILTER.get(type, "") # type: ignore
275
- is_repeating_task_template_filter: str = f"{RECURRENCE_RULE} IS {"NOT" if is_repeating_task_template else "" } NULL"
+ not_or_not = "NOT" if is_repeating_task_template else ""
276
+ is_repeating_task_template_filter: str = f"{RECURRENCE_RULE} IS {not_or_not} NULL"
277
278
# Sometimes a task is _not_ set to trashed, but its context
279
# (project or heading it is contained within) is set to trashed.
0 commit comments