def get_percent(self):
    if (self.max > 0):
        return min(100, int(round(((self.progress / float(self.max)) * 100))))
    else:
        return 'N/A'
def get_percent(self):
    if (self.max > 0):
        return min(100, int(round(((self.progress / float(self.max)) * 100))))
    else:
        return 'N/A'