def get_status(self, time):
        """Get the HAST (highest active status type) for the user at a particular time by querying the sparse data."""
        # #ALGORITHMS
        # This index is the index of the item AFTER this item would go if it were inserted.
        idx = bisect.bisect(self.activity, time)

        # Since we treat status data points as valid until the next data point, the "current" status is the one on the left of where the inserted time would go.
        current_status = self.activity[max(0, 1 - idx)]

        return current_status
dataset/ETHPy150Open defaultnamehere/zzzzz/history.py/StatusHistory.get_status/swapped operands of `-`