Skip to content
Commit af7286cf authored by ntome's avatar ntome 💬 Committed by hydrargyrum
Browse files

weboob.browser.filters.standard: in case of list Base returns first element

The use case of this patch is being able to perform:

   Base(TableCell('foo'), CleanText('./span'))

It was impossible without because CleanText was called with a list of
matching elements, instead of a single lxml element.

Not sure if it's the right way to fix the problem. Other ways include:
- modifying TableCell to return the element instead of a list of
elements
- modifying CleanText to accept a list of elements
- introducing another filter to take only the first element
parent 9c371e85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment