mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
8836dcb59f
commit
f8ac75d188
1 changed files with 2 additions and 2 deletions
|
|
@ -179,8 +179,8 @@ class AutomationTable:
|
|||
async with get_async_db_context(db) as db:
|
||||
stmt = select(Automation).filter_by(user_id=user_id)
|
||||
|
||||
if folder_id is not None:
|
||||
stmt = stmt.filter(Automation.folder_id == (folder_id or None))
|
||||
if folder_id:
|
||||
stmt = stmt.filter(Automation.folder_id == folder_id)
|
||||
|
||||
if query:
|
||||
search = f'%{query}%'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue