grr/server/grr_response_server/databases/mysql_flows.py
def _UpdateExpected(self, requests, value_dict, cursor):
    """Updates requests that have their ResponsesExpected set."""
    for client_id, flow_id, request_id in requests:
      query = ("UPDATE flow_requests SET responses_expected=%s "
               "WHERE client_id=%s AND flow_id=%s AND request_id=%s")
      args = [
          value_dict[(client_id, flow_id, request_id)],
          mysql_utils.ClientIDToInt(client_id),
          mysql_utils.FlowIDToInt(flow_id), request_id
      ]
      cursor.execute(query, args)
Updates requests that have their ResponsesExpected set.
Updates requests that have their ResponsesExpected set.
Updates requests that have their ResponsesExpected set .
def _UpdateExpected(self, requests, value_dict, cursor):
    for client_id, flow_id, request_id in requests:
      query = ("UPDATE flow_requests SET responses_expected=%s "
               "WHERE client_id=%s AND flow_id=%s AND request_id=%s")
      args = [
          value_dict[(client_id, flow_id, request_id)],
          mysql_utils.ClientIDToInt(client_id),
          mysql_utils.FlowIDToInt(flow_id), request_id
      ]
      cursor.execute(query, args)
def _UpdateExpected ( self , requests , value_dict , cursor ) : for client_id , flow_id , request_id in requests : query = ( "UPDATE flow_requests SET responses_expected=%s " "WHERE client_id=%s AND flow_id=%s AND request_id=%s" ) args = [ value_dict [ ( client_id , flow_id , request_id ) ] , mysql_utils . ClientIDToInt ( client_id ) , mysql_utils . FlowIDToInt ( flow_id ) , request_id ] cursor . execute ( query , args )
Updates requests that have their ResponsesExpected set.
Updates requests that have their ResponsesExpected set .
"""Updates requests that have their ResponsesExpected set."""
self
requests
value_dict
cursor