[99] Remove empty tags produced by munging all non-ascii tags
I thought this way of filtering was easier to read than filter(None, tags)
This commit is contained in:
parent
13dbb1eea4
commit
65cfade420
|
@ -153,7 +153,7 @@ class HarvesterBase(SingletonPlugin):
|
|||
|
||||
if self.config and self.config.get('clean_tags', False):
|
||||
tags = package_dict.get('tags', [])
|
||||
tags = [munge_tag(t) for t in tags]
|
||||
tags = [munge_tag(t) for t in tags if munge_tag(t) != '']
|
||||
tags = list(set(tags))
|
||||
package_dict['tags'] = tags
|
||||
|
||||
|
|
Loading…
Reference in New Issue