Skip to content

Commit

Permalink
Fix failing test_a_album*_edit_apply tests by
Browse files Browse the repository at this point in the history
excluding 'id' fields when storing within the Album model.
  • Loading branch information
JOJ0 committed Jul 15, 2023
1 parent 049bd06 commit 998425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,7 @@ def store(self, fields=None, inherit=True):
track_updates[key] = self[key]
elif key not in self and inherit:
track_deletes.add(key)
elif inherit: # Must be a flex attr
elif key != 'id' and inherit: # Could be a flex attr or id
track_updates[key] = self[key]

with self._db.transaction():
Expand Down

0 comments on commit 998425f

Please sign in to comment.