mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Handle 400mm+ insulation cases
This commit is contained in:
parent
532bb684d2
commit
2a2fd4fe3a
1 changed files with 5 additions and 1 deletions
|
|
@ -64,7 +64,11 @@ def handler():
|
|||
|
||||
if is_pitched:
|
||||
try:
|
||||
return int(description_lower.split("pitched,")[-1].split("mm")[0].lstrip().rstrip())
|
||||
|
||||
thickness = description_lower.split("pitched,")[-1].split("mm")[0].lstrip().rstrip()
|
||||
if "+" in thickness:
|
||||
return thickness
|
||||
return int(thickness)
|
||||
except ValueError as _:
|
||||
desc = description_lower.split("pitched,")[-1].lstrip().split(" ")[0]
|
||||
return search_description_options(desc)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue