refac
This commit is contained in:
1 parent
8836dcb59f
commit
f8ac75d188
1 file changed
+2
-2
@@ -179,8 +179,8 @@ class AutomationTable:
|
|||||||
async with get_async_db_context(db) as db:
|
async with get_async_db_context(db) as db:
|
||||||
stmt = select(Automation).filter_by(user_id=user_id)
|
stmt = select(Automation).filter_by(user_id=user_id)
|
||||||
|
|
||||||
if folder_id is not None:
|
if folder_id:
|
||||||
stmt = stmt.filter(Automation.folder_id == (folder_id or None))
|
stmt = stmt.filter(Automation.folder_id == folder_id)
|
||||||
|
|
||||||
if query:
|
if query:
|
||||||
search = f'%{query}%'
|
search = f'%{query}%'
|
||||||
|
|||||||
Reference in new issue
Block a user