From: Andrea Cornell Date: Wed, 2 Nov 2022 01:19:28 +0000 (-0400) Subject: sidebot, strikebot: number parsing bugfix X-Git-Tag: strikebot-0.0.7~6 X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=a5dbf07e7e0fb6caa5c8ab3716cce240b38c2b55;p=counting.git sidebot, strikebot: number parsing bugfix --- 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)