From 6e4247964ba21f77707fe5587b1cd9b12e415a57 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 6 Apr 2023 11:57:50 +0300 Subject: [PATCH] fix: missing `image_urls` --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 4251fc5..2d82ced 100644 --- a/models.py +++ b/models.py @@ -266,7 +266,7 @@ def to_nostr_delete_event(self, pubkey: str) -> NostrEvent: 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