From df5588852bd6b2099625aec00b93b5f7dea30a13 Mon Sep 17 00:00:00 2001 From: Fuyumi <44784500+Fuyucch1@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:43:13 +0100 Subject: [PATCH 1/2] Update item.py to new api response --- src/pyVinted/items/item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyVinted/items/item.py b/src/pyVinted/items/item.py index 56771fb..82ba0de 100644 --- a/src/pyVinted/items/item.py +++ b/src/pyVinted/items/item.py @@ -12,8 +12,8 @@ def __init__(self, data): self.size_title = data["size_title"] except: self.size_title = data["size_title"] - self.currency = data["currency"] - self.price = data["price"] + self.currency = data["price"]["currency_code"] + self.price = data["price"]["amount"] self.photo = data["photo"]["url"] self.url = data["url"] self.created_at_ts = datetime.fromtimestamp( From 21d32891a3bfe0509420a0d7e1ff6cb0e47d673a Mon Sep 17 00:00:00 2001 From: Fuyumi <44784500+Fuyucch1@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:44:22 +0100 Subject: [PATCH 2/2] Bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1104d1b..8f56b19 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import setuptools -VERSION = "0.5.0" +VERSION = "0.5.1" DESCRIPTION = "Vinted API wrapper for python" with open("README.md", "r", encoding="utf-8") as fh: