mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-01 22:35:21 +03:00
[core] Fix prtester for optgroups (#3467)
This commit is contained in:
parent
410ef85618
commit
b6a263037a
1 changed files with 7 additions and 3 deletions
10
.github/prtester.py
vendored
10
.github/prtester.py
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue