def __init__(self, stomp_connection, tellme, destination, db_connection): BasicEngine.__init__(self, stomp_connection, tellme, destination, db_connection) # Create teams logger.info('creating teams...') self.create_team('paulproteus') self.create_team('jalonso')
def __init__(self, stomp_connection, tellme, destination, db_connection, db_name): BasicEngine.__init__(self, stomp_connection, tellme, destination, db_connection, db_name) # Jason's code has us provide a hunt_ctx. # The only thing I can think to put here is the hunt start time. # but maybe even that's not needed. # self.team_states is a dict mapping from team_id to some # internal concept of what the team state is. # It is created by the parent class. # Create teams logger.info('creating teams...') self.create_teams_from_json_list(json.load( open(os.path.join(HERE, 'team-snapshot.json'))))