mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 04:23:56 +01:00
Diff output shows formatted values for strings
This is why, in #807, the album field was appearing to "work" while the year field was displaying the issue. We were colorizing the wrong value. Now, of course, we need to fix the underlying issue: we're confusingly displaying album-level information for these items.
This commit is contained in:
parent
29e11f1ddb
commit
63af350eaa
1 changed files with 1 additions and 1 deletions
|
|
@ -582,7 +582,7 @@ def _field_diff(field, old, new):
|
|||
# For strings, highlight changes. For others, colorize the whole
|
||||
# thing.
|
||||
if isinstance(oldval, basestring):
|
||||
oldstr, newstr = colordiff(oldval, newval)
|
||||
oldstr, newstr = colordiff(oldval, newstr)
|
||||
else:
|
||||
oldstr, newstr = colorize('red', oldstr), colorize('red', newstr)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue