def del_task_byid(self, taskid):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    sql = 'DELETE FROM task_info WHERE taskid={}'.format(taskid)
    cursor.execute(sql)
    logger.info('刪除taskid={}  cursor.rowcount={}'.format(taskid, str(cursor.rowcount)))
    conn.commit()
    cursor.close()
    conn.close()
def del_task_byid(self, taskid):
    conn = sqlite3.connect(self.dbname)
    cursor = conn.cursor()
    sql = 'DELETE FROM task_info WHERE taskid={}'.format(taskid)
    cursor.execute(sql)
    logger.info('刪除taskid={}  cursor.rowcount={}'.format(taskid, str(cursor.rowcount)))
    conn.commit()
    cursor.close()
    conn.close()