From 9873cea39b971b3ea5b242b77ff4cefea070f4dc Mon Sep 17 00:00:00 2001 From: ThisBirchWood Date: Wed, 5 Mar 2025 22:35:53 +0000 Subject: [PATCH] PATCH: Last 50 chats, instead of first 50 --- web_server/blueprints/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_server/blueprints/chat.py b/web_server/blueprints/chat.py index 45e6a18..94c77c0 100644 --- a/web_server/blueprints/chat.py +++ b/web_server/blueprints/chat.py @@ -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))