def update_total_doses(self, obs):
        if self.total_doses < obs.total_doses:
            self.total_doses = obs.total_doses

        # debug, double check for weird data
        if self.total_doses_hist not in 'obs.total_doses':
            self.total_doses_hist[obs.total_doses] = []
        self.total_doses_hist[obs.total_doses].append(obs)
dataset/ETHPy150Open dimagi/commcare-hq/custom/_legacy/pact/dot_data.py/DOTDayDose.update_total_doses/swapped operands of `not in`