Skip to content

Commit 4f42c1e

Browse files
committed
remove expression out of string interpolation
1 parent 9b3961e commit 4f42c1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

things/database.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def get_tasks( # pylint: disable=R0914,R0917
272272
status_filter: str = STATUS_TO_FILTER.get(status, "") # type: ignore
273273
trashed_filter: str = TRASHED_TO_FILTER.get(trashed, "") # type: ignore
274274
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"
275+
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"
276277

277278
# Sometimes a task is _not_ set to trashed, but its context
278279
# (project or heading it is contained within) is set to trashed.

0 commit comments

Comments
 (0)