fix: missing image_urls
This commit is contained in:
parent
d9d44e812b
commit
929d45bed8
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ class Product(PartialProduct, Nostrable):
|
|||
def from_row(cls, row: Row) -> "Product":
|
||||
product = cls(**dict(row))
|
||||
product.config = ProductConfig(**json.loads(row["meta"]))
|
||||
product.images = json.loads(row["image_urls"])
|
||||
product.images = json.loads(row["image_urls"]) if "image_urls" in row else []
|
||||
product.categories = json.loads(row["category_list"])
|
||||
return product
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue