@property
    def dob_age(self):
        if self.case in "mother_dob" and self.case["mother_dob"]:
            try:
                mother_dob = self.case["mother_dob"]

                if type(mother_dob) is dict:
                    mother_dob = mother_dob["#value"]
                days = (date.today() - CaseDisplay.parse_date(self, mother_dob).date()).days
                mother_dob = self.parse_date(mother_dob)
                return "%s, %s" % (mother_dob, days/365)
            except AttributeError:
                return _("Bad date format!")
        else:
            return EMPTY_FIELD
dataset/ETHPy150Open dimagi/commcare-hq/custom/bihar/reports/display.py/MCHMotherDisplay.dob_age/swapped operands of `in`