mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 00:15:20 +01:00
Merge pull request #560 from brilnius/fix_modify_with_new_field
Fixed ignored new fields when showing/detecting a model change
This commit is contained in:
commit
e2908017a4
1 changed files with 2 additions and 2 deletions
|
|
@ -599,9 +599,9 @@ def show_model_changes(new, old=None, fields=None, always=False):
|
|||
"""
|
||||
old = old or new._db._get(type(new), new.id)
|
||||
|
||||
# Build up lines showing changes.
|
||||
# Build up lines showing changed or new fields.
|
||||
changes = []
|
||||
for field in old:
|
||||
for field in old.keys() + list(set(new.keys()) - set(old.keys())):
|
||||
# Subset of the fields. Never show mtime.
|
||||
if field == 'mtime' or (fields and field not in fields):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue