

def todoValidate(self, _id, _state, _tags, _priority, _comment):
    db = WCache().getDB()
    if (db and (int(_id) in db.todoA)):
        storedTask = db.todoA[int(_id)]
        tagsA = []
        for cTag in _tags.split(','):
            tagsA.append(cTag.strip())
        if ((storedTask.state != _state) or (sorted(storedTask.tagsA) != sorted(tagsA)) or (_state.lvl != int(_priority)) or (storedTask.comment != _comment)):
            return False
    return True

dataset/ETHPy150Open NikolayRag/typeTodo/commands_maintain.py TypetodoMaintainCommand.todoValidate/VarMisuse@114/141 `storedTask`->`_state`