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

added fr.summary property

parent e326165c
...@@ -91,3 +91,11 @@ class FileRecorder(list): ...@@ -91,3 +91,11 @@ class FileRecorder(list):
if outs['show_length']: if outs['show_length']:
lines.append(f'Length = {len(self)} rows') lines.append(f'Length = {len(self)} rows')
return "\n".join(lines) 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")"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment