dactyl badges: better support for non-link badges

This commit is contained in:
mDuo13
2016-09-19 18:47:37 -07:00
parent 2066e42bd5
commit f96c018fae

View File

@@ -40,3 +40,5 @@ def filter_soup(soup, target=None, page=None):
b.clear()
b.append(img)
b["title"] = badge_label
if not b["href"]:
del b["href"]