Skip to content

Commit 3aa3189

Browse files
Update datajoint/table.py
Co-authored-by: Raphael Guzman <[email protected]>
1 parent 09453f4 commit 3aa3189

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datajoint/table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,8 @@ def delete(self, transaction=True, safemode=None):
408408
self.connection.cancel_transaction()
409409
else:
410410
if not safemode or user_choice("Commit deletes?", default='no') == 'yes':
411-
self.connection.commit_transaction()
411+
if transaction:
412+
self.connection.commit_transaction()
412413
if safemode:
413414
print('Deletes committed.')
414415
else:

0 commit comments

Comments
 (0)