main
HuangHai 4 months ago
parent e3508a9ddf
commit 4bb1f6f139

@ -68,7 +68,7 @@ async def get_chat_log_by_session(mysql_pool, session_id, page=1, page_size=10):
# 查询分页数据
await cur.execute(
"SELECT id, session_id, user_input, model_response, audio_url, duration, create_time "
"FROM t_chat_log WHERE session_id = %s ORDER BY id DESC LIMIT %s OFFSET %s",
"FROM t_chat_log WHERE session_id = %s ORDER BY id asc LIMIT %s OFFSET %s",
(session_id, page_size, offset)
)
records = await cur.fetchall()

Loading…
Cancel
Save