Skip to content

Commit

Permalink
Remove obsolete argument in tub
Browse files Browse the repository at this point in the history
  • Loading branch information
DocGarbanzo committed Dec 12, 2023
1 parent eeec2cc commit e2b3981
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions donkeycar/parts/datastore_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,11 @@ def exit_hook():
# Automatically save config when program ends
atexit.register(exit_hook)

def write_record(self, record, index=None):
if index is None:
new_catalog = self.current_index > 0 \
and (self.current_index % self.max_len) == 0
if new_catalog:
self._add_catalog()
def write_record(self, record):
new_catalog = self.current_index > 0 \
and (self.current_index % self.max_len) == 0
if new_catalog:
self._add_catalog()

self.current_catalog.write_record(record)
self.current_index += 1
Expand Down Expand Up @@ -416,8 +415,6 @@ def add_deleted_indexes(self, indexes):
self.deleted_indexes.update(indexes)
self._update_catalog_metadata(update=True)



def close(self):
""" Closing tub closes open files for catalog, catalog manifest and
manifest.json"""
Expand Down

0 comments on commit e2b3981

Please sign in to comment.