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

updated fr.summary property

parent fb968792
...@@ -90,12 +90,10 @@ class FileRecorder(list): ...@@ -90,12 +90,10 @@ class FileRecorder(list):
t, max_lines=-1, max_width=-1, show_name=True, show_unit=None, show_dtype=False, align="<") t, max_lines=-1, max_width=-1, show_name=True, show_unit=None, show_dtype=False, align="<")
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 f"[{self.summary}]\n".join(lines)
@property @property
def summary(self): def summary(self):
return f"(" \ return f"{len(self)} alleged, " \
f"{len(self)} alleged, " \
f"{len(self) - sum(self.to_table()['existence'])} missing, " \ f"{len(self) - sum(self.to_table()['existence'])} missing, " \
f"{sum(self.to_table()['existence'])} to be pushed" \ f"{sum(self.to_table()['existence'])} to db"
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