

def get_task(self, project, taskid, fields=None):
    if (project not in self.projects):
        self._list_project()
    if (project not in self.projects):
        return None
    where = ('`taskid` = %s' % self.placeholder)
    if (project not in self.projects):
        return None
    tablename = self._tablename(project)
    for each in self._select2dic(tablename, what=fields, where=where, where_values=(taskid,)):
        return self._parse(each)
    return None

dataset/ETHPy150Open binux/pyspider/pyspider/database/sqlite/taskdb.py TaskDB.get_task/original