Fix display of disabled reasons.
This commit is contained in:
parent
303432fc68
commit
fa9271b970
1 changed files with 1 additions and 1 deletions
2
dosage
2
dosage
|
@ -299,7 +299,7 @@ def getTaggedScraperName(scraperobj, limit=None, reasons=None):
|
||||||
if scraperobj.lang != "en":
|
if scraperobj.lang != "en":
|
||||||
tags.append("%s:%s" % (TAG_LANG, scraperobj.lang))
|
tags.append("%s:%s" % (TAG_LANG, scraperobj.lang))
|
||||||
disabled = scraperobj.getDisabledReasons()
|
disabled = scraperobj.getDisabledReasons()
|
||||||
if disabled and reasons:
|
if disabled and reasons is not None:
|
||||||
reasons.update(disabled)
|
reasons.update(disabled)
|
||||||
for reason in disabled:
|
for reason in disabled:
|
||||||
tags.append("%s:%s" % (TAG_DISABLED, reason))
|
tags.append("%s:%s" % (TAG_DISABLED, reason))
|
||||||
|
|
Loading…
Reference in a new issue