grr/server/grr_response_server/db.py
def UpdateHuntObject(self, hunt_id, update_fn):
    """Updates the hunt object by applying the update function.

    Updates are done by applying the update function. They're guaranteed to
    be atomic.

    Args:
      hunt_id: Id of the hunt to be updated.
      update_fn: A function accepting a single rdf_hunt_objects.Hunt argument
        and returning a modified rdf_hunt_objects.Hunt object.

    Returns:
      An updated rdf_hunt_objects.Hunt object (result of the update_fn function
      call).
    """
Updates the hunt object by applying the update function.

    Updates are done by applying the update function. They're guaranteed to
    be atomic.

    Args:
      hunt_id: Id of the hunt to be updated.
      update_fn: A function accepting a single rdf_hunt_objects.Hunt argument
        and returning a modified rdf_hunt_objects.Hunt object.

    Returns:
      An updated rdf_hunt_objects.Hunt object (result of the update_fn function
      call).
    
Updates the hunt object by applying the update function.
Updates are done by applying the update function. They're guaranteed to
be atomic.
Updates the hunt object by applying the update function . Updates are done by applying the update function . They ' re guaranteed to be atomic .
def UpdateHuntObject(self, hunt_id, update_fn):
def UpdateHuntObject ( self , hunt_id , update_fn ) :
Updates the hunt object by applying the update function.
Updates the hunt object by applying the update function .
"""Updates the hunt object by applying the update function.

    Updates are done by applying the update function. They're guaranteed to
    be atomic.

    Args:
      hunt_id: Id of the hunt to be updated.
      update_fn: A function accepting a single rdf_hunt_objects.Hunt argument
        and returning a modified rdf_hunt_objects.Hunt object.

    Returns:
      An updated rdf_hunt_objects.Hunt object (result of the update_fn function
      call).
    """
An updated rdf_hunt_objects.Hunt object (result of the update_fn function
call).
An updated rdf_hunt_objects . Hunt object ( result of the update_fn function call ) .
self
hunt_id
Id of the hunt to be updated.
Id of the hunt to be updated .
update_fn
A function accepting a single rdf_hunt_objects.Hunt argument
and returning a modified rdf_hunt_objects.Hunt object.
A function accepting a single rdf_hunt_objects . Hunt argument and returning a modified rdf_hunt_objects . Hunt object .