Make smart_update correctly merge is_multiple custom columns.

This commit is contained in:
Charles Haley 2011-07-09 09:23:15 +01:00
parent 6c06fd23ec
commit 28d767261d

View File

@ -529,8 +529,8 @@ class Metadata(object):
for t in st.intersection(ot): for t in st.intersection(ot):
sidx = lstags.index(t) sidx = lstags.index(t)
oidx = lotags.index(t) oidx = lotags.index(t)
self_tags[sidx] = other.tags[oidx] self_tags[sidx] = other_tags[oidx]
self_tags += [t for t in other.tags if t.lower() in ot-st] self_tags += [t for t in other_tags if t.lower() in ot-st]
setattr(self, x, self_tags) setattr(self, x, self_tags)
my_comments = getattr(self, 'comments', '') my_comments = getattr(self, 'comments', '')