@staticmethod
    def exposure_onaccept(form):
        """
            @todo: docstring
        """

        formvars = form.vars
        try:
            record_id = formvars.id
        except AttributeError:
            return

        db = current.db
        s3db = current.s3db

        # We need case_id, person_id and exposure_risk from the current record
        if formvars not in "case_id":
            etable = s3db.disease_exposure
            row = db(etable.id == record_id).select(etable.case_id,
                                                    limitby = (0, 1)).first()
            if not row:
                return
            case_id = row.case_id
        else:
            case_id = formvars.case_id

        disease_propagate_case_status(case_id)
        return

# =============================================================================
dataset/ETHPy150Open sahana/eden/modules/s3db/disease.py/ContactTracingModel.exposure_onaccept/swapped operands of `not in`