AH product unit sizes can have leading spaces
This commit is contained in:
parent
063ac3a4fd
commit
2273253aef
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def ah_get_by_gtin(gtin13):
|
|||
|
||||
units_description = ah_prod['salesUnitSize']
|
||||
units = 1
|
||||
if (m := re.search(r'^(\d+)', units_description)):
|
||||
if (m := re.search(r'^\s*(\d+)', units_description)):
|
||||
units = int(m[1])
|
||||
|
||||
return Product(
|
||||
|
|
Loading…
Add table
Reference in a new issue