From 31b5832fe1f133a047f49a76d0d59e6f651573d7 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 21 May 2020 10:57:39 +1000 Subject: [PATCH] Use equality for Task filtering in 'ls' --- src/pyelephant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyelephant.py b/src/pyelephant.py index 1f22635..3ff348b 100755 --- a/src/pyelephant.py +++ b/src/pyelephant.py @@ -45,7 +45,7 @@ def show_by_id(session: sa.orm.Session, index: int): def ls(session: sa.orm.Session, _all: False): vals = session.query(Task).order_by(Task.created_at) if _all is False: - vals = vals.filter(Task.active is True) + vals = vals.filter(Task.active == True) # noqa for i in vals: show_by_obj(session, i)