def add(self, offer, result):
        if self.applications not in offer.id:
            self.applications[offer.id] = {
                'offer': offer,
                'result': result,
                'name': offer.name,
                'description': result.description,
                'voucher': offer.get_voucher(),
                'freq': 0,
                'discount': D('0.00')}
        self.applications[offer.id]['discount'] += result.discount
        self.applications[offer.id]['freq'] += 1
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/offer/results.py/OfferApplications.add/swapped operands of `not in`