This commit is contained in:
Timothy Jaeryang Baek
2026-02-04 22:57:46 -06:00
parent 5669d1062c
commit 2cf2565e80

View File

@@ -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())