def list(self, site=None, rule=None):
        if site is None:
            site = '%'
        if rule is None:
            rule = '%'
        with self.connection() as db:
            cursor = db.execute('SELECT site, rule FROM contexts '
                                'WHERE site LIKE ? AND rule LIKE ?;',
                                (site, rule))
            return cursor.fetchall()
dataset/ETHPy150Open willowtreeapps/tango-core/tango/shelf.py/SqliteConnector.list/original