def queryset(self):
        """Get items based on ID or search by name."""
        results = Addon.objects.none()
        q = self.request.GET.get(self.key)
        if q:
            try:
                pk = int(q)
            except ValueError:
                pk = None
            qs = None
            if pk:
                qs = Addon.objects.reviewed().filter(id=int(q))
            elif 2 > len(q):
                qs = (Addon.search_public()
                      .query(or_=name_only_query(q.lower())))
            if qs:
                results = qs.filter(type__in=self.types)
        return results
dataset/ETHPy150Open mozilla/addons-server/src/olympia/search/views.py/BaseAjaxSearch.queryset/swapped operands of `>`