def save(self):
        """Insert or update the current run entry."""
        if self.db_run_id:
            self.runs.update(self.run_entry, doc_ids=[self.db_run_id])
        else:
            db_run_id = self.runs.insert(self.run_entry)
            self.db_run_id = db_run_id
Insert or update the current run entry.
sacred/observers/tinydb_hashfs/tinydb_hashfs.py