

def status_count(self, project):
    '\n        return a dict\n        '
    result = dict()
    if (project not in self.projects):
        self._list_project()
    if (project not in self.projects):
        return result
    tablename = self._tablename(project)
    for (status, count) in self._execute(('SELECT `status`, count(1) FROM %s GROUP BY `status`' % self.escape(tablename))):
        result[status] = count
    return result

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