sidebot, strikebot: number parsing bugfix
authorAndrea Cornell <anders@acorn.pw>
Wed, 2 Nov 2022 01:19:28 +0000 (21:19 -0400)
committerAndrea Cornell <anders@acorn.pw>
Wed, 2 Nov 2022 01:47:31 +0000 (21:47 -0400)
sidebot/sidebot/strikebot_updates.py
strikebot/src/strikebot/updates.py

index 6c90e5fb79b7a0c8797f04487a5f7e6e6929ddd0..83cce59ce197a31c9246d4a8ca0faca6269a4bf2 100644 (file)
@@ -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)
index 4289ee92b852bf70bf75fd2c23ef0f884029b587..b82a7914c22fe31794712cc5dbeaff98520d3885 100644 (file)
@@ -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)