def get_raw_fraction(self, unit):
    denom = max(self.max, (DEFAULT_UNIT_COUNT if (unit == CRITERION_UNITS) else 1))
    return (self.progress / denom)
def get_raw_fraction(self, unit):
    denom = max(self.max, (DEFAULT_UNIT_COUNT if (unit == CRITERION_UNITS) else 1))
    return (self.progress / denom)