def last_interaction(case):
    last_inter = None
    for action in case['actions']:
        if LAST_INTERACTION_LIST in action['xform_xmlns']:
            last_inter = action
    return last_inter['date']
dataset/ETHPy150Open dimagi/commcare-hq/custom/succeed/models.py/last_interaction/swapped operands of `in`