mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-10 22:43:29 +00:00
refac
This commit is contained in:
parent
2cf2565e80
commit
e8a36f033b
1 changed files with 2 additions and 2 deletions
|
|
@ -88,10 +88,10 @@ def upgrade() -> None:
|
|||
sa.column("updated_at", sa.BigInteger()),
|
||||
)
|
||||
|
||||
# Fetch all chats (excluding shared chats which contain 'shared' in id)
|
||||
# Fetch all chats (excluding shared chats which have user_id starting with 'shared-')
|
||||
chats = conn.execute(
|
||||
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat).where(
|
||||
~chat_table.c.id.like("%shared%")
|
||||
~chat_table.c.user_id.like("shared-%")
|
||||
)
|
||||
).fetchall()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue