summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/csv_table.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/jimbrella/csv_table.py b/jimbrella/csv_table.py
index 6f431a7..3c420ff 100644
--- a/jimbrella/csv_table.py
+++ b/jimbrella/csv_table.py
@@ -86,8 +86,15 @@ class CsvTable:
self.lockfile.unlock()
+ def _append(self, row) -> list:
+ """Append one row, and return the entire updated table."""
+ rows = self._read()
+ rows.append(row)
+ self._write(rows)
+ return rows
+
def _update(self, update: dict) -> list:
- """Update status of one row, and return the entire updated table."""
+ """Update one row, and return the entire updated table."""
rows = self._read()
index_column = self.schema[0]["name"]
for idx, row in enumerate(rows):