From a5dbf07e7e0fb6caa5c8ab3716cce240b38c2b55 Mon Sep 17 00:00:00 2001 From: Andrea Cornell Date: Tue, 1 Nov 2022 21:19:28 -0400 Subject: [PATCH] sidebot, strikebot: number parsing bugfix --- sidebot/sidebot/strikebot_updates.py | 2 +- strikebot/src/strikebot/updates.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sidebot/sidebot/strikebot_updates.py b/sidebot/sidebot/strikebot_updates.py index 6c90e5f..83cce59 100644 --- a/sidebot/sidebot/strikebot_updates.py +++ b/sidebot/sidebot/strikebot_updates.py @@ -58,7 +58,7 @@ def parse_update(payload_data: dict, curr_count: Optional[int], bot_user: str) - worklist.append(NEW_LINE) elif el.name == "pre": worklist.append(NEW_LINE) - worklist.extend([l] for l in reversed(el.text.splitlines())) + worklist.extend([l for l in reversed(el.text.splitlines())]) worklist.append(NEW_LINE) elif el.name == "tr": worklist.append(NEW_LINE) diff --git a/strikebot/src/strikebot/updates.py b/strikebot/src/strikebot/updates.py index 4289ee9..b82a791 100644 --- a/strikebot/src/strikebot/updates.py +++ b/strikebot/src/strikebot/updates.py @@ -56,7 +56,7 @@ def parse_update(payload_data: dict, curr_count: Optional[int], bot_user: str) - worklist.append(NEW_LINE) elif el.name == "pre": worklist.append(NEW_LINE) - worklist.extend([l] for l in reversed(el.text.splitlines())) + worklist.extend([l for l in reversed(el.text.splitlines())]) worklist.append(NEW_LINE) elif el.name == "tr": worklist.append(NEW_LINE) -- 2.30.2