forked from mtusi2026/mtusi2026lab2
fix: исправить пагинацию, используя полную точность created_at в cursor
Co-authored-by: aider (deepseek/deepseek-chat) <aider@aider.chat>
This commit is contained in:
@@ -37,6 +37,8 @@ def _chat_row(row: tuple, member_ids: list[str]) -> dict[str, Any]:
|
||||
"title": title,
|
||||
"member_ids": member_ids,
|
||||
"created_at": _iso(created_at),
|
||||
# Полное значение для keyset-cursor; handler вырезает перед отдачей.
|
||||
"_cursor_created_at": created_at.isoformat(),
|
||||
}
|
||||
|
||||
|
||||
@@ -48,6 +50,8 @@ def _message_row(row: tuple) -> dict[str, Any]:
|
||||
"sender_id": str(sender_id),
|
||||
"text": text,
|
||||
"created_at": _iso(created_at),
|
||||
# Полное значение для keyset-cursor; handler вырезает перед отдачей.
|
||||
"_cursor_created_at": created_at.isoformat(),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user