get_lines in value
This commit is contained in:
@@ -180,7 +180,8 @@ def process_entry(entry, value_type):
|
||||
if value_td.span.attrs["class"][0] == "ra":
|
||||
active = True
|
||||
|
||||
|
||||
lines = [f.strip() for f in " ".join(["\n" if x.name == "br" else x.text.strip() for x in value_td.find_all()]).split("\n") if f]
|
||||
valid_from, valid_until = parse_oddo(valid_td.text.strip())
|
||||
|
||||
return value, valid_from, valid_until, active
|
||||
|
||||
|
||||
Reference in New Issue
Block a user