Skip to content

Commit

Permalink
A more sensible way to handle free products
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Apr 24, 2024
1 parent 99f7090 commit c44e5ac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/shop/cred/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,12 +1023,12 @@ def get_cue_products(ua_contracts_api, type, **kwargs):
)
filtered_products = [
{
"id": listing["productID"],
"longId": listing["id"],
"period": listing["period"],
"marketplace": listing["marketplace"],
"name": listing["name"],
"price": listing["price"],
"id": listing.get("productID", ""),
"longId": listing.get("id", ""),
"period": listing.get("period", ""),
"marketplace": listing.get("marketplace", ""),
"name": listing.get("name", ""),
"price": listing.get("price", ""),
}
for listing in listings
if (listing["productID"].endswith("key") and type == "keys")
Expand Down

0 comments on commit c44e5ac

Please sign in to comment.