We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc7139d commit ae2e2cbCopy full SHA for ae2e2cb
2 files changed
apps/addons/cron.py
@@ -454,6 +454,7 @@ def reindex_addons(index=None, addon_type=None):
454
ids = (Addon.objects.values_list('id', flat=True)
455
.filter(_current_version__isnull=False,
456
status__in=amo.VALID_STATUSES,
457
+ is_listed=True,
458
disabled_by_user=False))
459
if addon_type:
460
ids = ids.filter(type=addon_type)
apps/addons/models.py
@@ -1578,7 +1578,8 @@ def version_changed(sender, **kw):
1578
def update_search_index(sender, instance, **kw):
1579
from . import tasks
1580
if not kw.get('raw'):
1581
- tasks.index_addons.delay([instance.id])
+ if not instance.disabled_by_user and instance.is_listed:
1582
+ tasks.index_addons.delay([instance.id])
1583
1584
1585
@Addon.on_change
0 commit comments