diff --git a/trades/templatetags/trade_offer_tags.py b/trades/templatetags/trade_offer_tags.py index 89a27d6..049ef44 100644 --- a/trades/templatetags/trade_offer_tags.py +++ b/trades/templatetags/trade_offer_tags.py @@ -15,11 +15,11 @@ def render_trade_offer(context, offer): want_cards_available = [] for card in offer.trade_offer_have_cards.all(): - if all(acc.requested_card_id != card.card_id for acc in acceptances): + if (card.quantity > card.qty_accepted): have_cards_available.append(card) for card in offer.trade_offer_want_cards.all(): - if all(acc.offered_card_id != card.card_id for acc in acceptances): + if (card.quantity > card.qty_accepted): want_cards_available.append(card) return {