Skip to content

Commit

Permalink
fix: missing image_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Apr 6, 2023
1 parent 8110326 commit 6e42479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6e42479

Please sign in to comment.