Skip to content

Commit

Permalink
fix delete bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Oct 6, 2023
1 parent 4676731 commit 871278e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyxtal/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def get_all_codes(self):
if row.csd_code not in codes:
codes.append(row.csd_code)
else:
print('find duplicate! remove', row.csd_code)
self.db.delete(row.id)
print('find duplicate! remove', row.id, row.csd_code)
self.db.delete([row.id])
self.codes = codes

def add(self, entry):
Expand Down

0 comments on commit 871278e

Please sign in to comment.