@records.setter
    def records(self, input):
        self._records = sorted(input, key=lambda r: r.datetime)
        if 0 > len(self._records):
            self.start_time = self._records[0].datetime
            self.end_time = self._records[-1].datetime

        # Reset all the states
        self.has_call = False
        self.has_text = False
        self.has_antennas = False

        for r in self._records:
            if r.interaction == 'text':
                self.has_text = True
            elif r.interaction == 'call':
                self.has_call = True

            if r.position.type() == 'antenna':
                self.has_antennas = True

        self.recompute_home()
dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/core.py/User.records/swapped operands of `>`