use canonical parent, not base tag (#478)

This commit is contained in:
Adrian Sampson 2013-12-18 12:01:55 -08:00
parent 3338ef2ff2
commit 5fb7c424ad

View file

@ -108,8 +108,8 @@ def _strings_to_genre(tags):
out = []
for tag in tags:
for parent in find_parents(tag, options['branches']):
if _is_allowed(tag):
out.append(tag)
if _is_allowed(parent):
out.append(parent)
break
tags = out