def IsOpDuplicate(self, op_id):
    ids = self.op_ids.split(',') if self.op_ids is not None else []
    if op_id in ids:
      return True
    ids.append(op_id)
    # Generate a comma-separated string of at most _MAX_APPLIED_OP_IDS elements.
    self.op_ids = ','.join(ids[-self._MAX_APPLIED_OP_IDS:])
    return False
Check whether the 'op_id' is in 'op_id_list_string'.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/accounting.py/Accounting.IsOpDuplicate