mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 04:00:31 +01:00
refac
This commit is contained in:
@@ -88,9 +88,11 @@ def upgrade() -> None:
|
||||
sa.column("updated_at", sa.BigInteger()),
|
||||
)
|
||||
|
||||
# Fetch all chats
|
||||
# Fetch all chats (excluding shared chats which contain 'shared' in id)
|
||||
chats = conn.execute(
|
||||
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat)
|
||||
sa.select(chat_table.c.id, chat_table.c.user_id, chat_table.c.chat).where(
|
||||
~chat_table.c.id.like("%shared%")
|
||||
)
|
||||
).fetchall()
|
||||
|
||||
now = int(time.time())
|
||||
|
||||
Reference in New Issue
Block a user