Conditions | 3 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from tabulate import tabulate |
||
14 | def append(self, row): |
||
15 | id, status = row |
||
16 | |||
17 | # status can only be True, False, or None |
||
18 | if status: |
||
19 | self.success += 1 |
||
20 | elif status is None: # status is only ever None if file checksum matched an existing file checksum and is therefore a duplicate file |
||
21 | self.duplicate += 1 |
||
22 | self.duplicate_items.append(id) |
||
23 | else: |
||
24 | self.error += 1 |
||
25 | self.error_items.append(id) |
||
26 | |||
58 |