aboutsummaryrefslogtreecommitdiff
path: root/.github/prtester.py
diff options
context:
space:
mode:
authorGravatar Bocki <henning@bocklage.com> 2023-06-30 15:41:00 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-30 15:41:00 +0200
commitb6a263037a52d54f47a5d58ee4c43a8178b71876 (patch)
treef8ce220447bf14bfbb2687a310566ac2934859af /.github/prtester.py
parent410ef85618114ccfec0a10911eb68e324b97121c (diff)
downloadrss-bridge-b6a263037a52d54f47a5d58ee4c43a8178b71876.tar.gz
rss-bridge-b6a263037a52d54f47a5d58ee4c43a8178b71876.tar.zst
rss-bridge-b6a263037a52d54f47a5d58ee4c43a8178b71876.zip
[core] Fix prtester for optgroups (#3467)
Diffstat (limited to '.github/prtester.py')
-rw-r--r--.github/prtester.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/prtester.py b/.github/prtester.py
index 93b83289..df6cc1ff 100644
--- a/.github/prtester.py
+++ b/.github/prtester.py
@@ -52,10 +52,14 @@ def testBridges(bridges,status):
for listing in lists:
selectionvalue = ''
listname = listing.get('name')
- if 'optgroup' in listing.contents[0].name:
- listing = list(itertools.chain.from_iterable(listing))
+ cleanlist = []
+ for option in listing.contents:
+ if 'optgroup' in option.name:
+ cleanlist.extend(option)
+ else:
+ cleanlist.append(option)
firstselectionentry = 1
- for selectionentry in listing:
+ for selectionentry in cleanlist:
if firstselectionentry:
selectionvalue = selectionentry.get('value')
firstselectionentry = 0