src/api/todos/endpoints.py
def put(self, id):
        '''Update a task given its identifier'''
        for todo in todos:
            if todo['id'] == id:
                todo.update(ns.payload)
                return todo
        api.abort(404, "Todo {} doesn't exist".format(id))
Update a task given its identifier
Update a task given its identifier
Update a task given its identifier
def put(self, id):
        for todo in todos:
            if todo['id'] == id:
                todo.update(ns.payload)
                return todo
        api.abort(404, "Todo {} doesn't exist".format(id))
def put ( self , id ) : for todo in todos : if todo [ 'id' ] == id : todo . update ( ns . payload ) return todo api . abort ( 404 , "Todo {} doesn't exist" . format ( id ) )
Update a task given its identifier
Update a task given its identifier
'''Update a task given its identifier'''
self
id