Commit fb968792 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

added fr.summary property

parent e326165c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -91,3 +91,11 @@ class FileRecorder(list):
        if outs['show_length']:
            lines.append(f'Length = {len(self)} rows')
        return "\n".join(lines)

    @property
    def summary(self):
        return f"(" \
               f"{len(self)} alleged, " \
               f"{len(self) - sum(self.to_table()['existence'])} missing, " \
               f"{sum(self.to_table()['existence'])} to be pushed" \
               f")"