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
Please register or sign in to comment