fix(gismeteo): fix precipitation parser
This commit is contained in:
@@ -171,7 +171,7 @@ class PrecipitationParser(RowParser[float]):
|
|||||||
|
|
||||||
def parse_row(self, tag: Tag) -> Iterable[float]:
|
def parse_row(self, tag: Tag) -> Iterable[float]:
|
||||||
for item in tag.select(".widget-row[data-row=precipitation-bars] > .row-item > .item-unit"):
|
for item in tag.select(".widget-row[data-row=precipitation-bars] > .row-item > .item-unit"):
|
||||||
yield float(item.text.replace(",", "."))
|
yield float(item.text.replace(",", ".").replace("< ", ""))
|
||||||
|
|
||||||
|
|
||||||
class PressureParser(RowParser[list[int]]):
|
class PressureParser(RowParser[list[int]]):
|
||||||
|
|||||||
Reference in New Issue
Block a user