PATCH: Last 50 chats, instead of first 50

This commit is contained in:
2025-03-05 22:35:53 +00:00
parent 6a6292b688
commit 9873cea39b

View File

@@ -88,7 +88,7 @@ def get_past_chat(stream_id: int):
JOIN users u ON c.chatter_id = u.user_id
LEFT JOIN subscribes s ON c.chatter_id = s.user_id AND s.subscribed_id = ?
WHERE c.stream_id = ?
ORDER BY c.time_sent ASC
ORDER BY c.time_sent DESC
LIMIT 50;
""", (stream_id, stream_id))