

def load_tasks(self, status, project=None, fields=None):
    if (project and (project not in project.projects)):
        return
    where = ('status = %d' % status)
    if project:
        projects = [project]
    else:
        projects = self.projects
    for project in projects:
        tablename = self._tablename(project)
        for each in self._select2dic(tablename, what=fields, where=where):
            (yield self._parse(each))

dataset/ETHPy150Open binux/pyspider/pyspider/database/sqlite/taskdb.py TaskDB.load_tasks/VarMisuse@28/30 `self`->`project`