Skip to content

Commit

Permalink
Merge pull request #15 from simonbeguin/patch-1
Browse files Browse the repository at this point in the history
Update items.py
  • Loading branch information
herissondev authored Jul 3, 2024
2 parents c72fa9d + ab7360b commit 2a60714
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pyVinted/items/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,25 @@ def parseUrl(self, url, nbrItems=20, page=1, time=None) -> Dict:
map(str, [tpl[1] for tpl in querys if tpl[0] == "catalog[]"])
),
"color_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "color_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "color_ids[]"])
),
"brand_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "brand_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "brand_ids[]"])
),
"size_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "size_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "size_ids[]"])
),
"material_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "material_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "material_ids[]"])
),
"status_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "status[]"])
),
"country_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "country_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "country_ids[]"])
),
"city_ids": ",".join(
map(str, [tpl[1] for tpl in querys if tpl[0] == "city_id[]"])
map(str, [tpl[1] for tpl in querys if tpl[0] == "city_ids[]"])
),
"is_for_swap": ",".join(
map(str, [1 for tpl in querys if tpl[0] == "disposal[]"])
Expand Down

0 comments on commit 2a60714

Please sign in to comment.