From ff68ebc561daed7e97256ee656efc98ddd61be76 Mon Sep 17 00:00:00 2001 From: m3taversal Date: Tue, 31 Mar 2026 13:36:06 +0100 Subject: [PATCH] Remove extra blank line in _group_into_windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ganymede review cleanup — duplicate by_chat block was already resolved during consolidation, this removes the leftover cosmetic blank line. Co-Authored-By: Claude Opus 4.6 (1M context) --- telegram/bot.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/telegram/bot.py b/telegram/bot.py index 97e7435..a841df7 100644 --- a/telegram/bot.py +++ b/telegram/bot.py @@ -1660,12 +1660,6 @@ def _group_into_windows(messages: list[dict], window_seconds: int = 300) -> list if not messages: return [] - # Group by chat_id first - by_chat: dict[int, list[dict]] = {} - for msg in messages: - chat_id = msg.get("chat_id", 0) - by_chat.setdefault(chat_id, []).append(msg) - # Group by chat_id first by_chat: dict[int, list[dict]] = {} for msg in messages: @@ -1693,7 +1687,6 @@ def _group_into_windows(messages: list[dict], window_seconds: int = 300) -> list else: current_window.append(msg) - if current_window: windows.append(current_window)