def add(self, record):
    self.success += record['success']
    self.failed += record['failed']
    self.total += record['total']
def add(self, record):
    self.success += record['success']
    self.failed += record['failed']
    self.total += record['total']