def base_query(self):
        q = super(ViewPendingQueue, self).base_query()
        q['where'].extend(['files.status = %s' % amo.STATUS_UNREVIEWED,
                           'addons.status = %s' % amo.STATUS_PUBLIC])
        return q
dataset/ETHPy150Open mozilla/addons-server/src/olympia/editors/models.py/ViewPendingQueue.base_query/original