def __init__(self):
     self.API_KEY = None
     self.usersLeague_csv_name = "usersLeague.csv"
     self.usersInfo_csv_name = "usersInfo.csv"
     self.usersMatchlist_csv_name = "usersMatchlist.csv"
     self.matchInfo_csv_name = "matchInfo.csv"
     self.matchTimeline_csv_name = "matchTimeline.csv"
     self.matchInfo_and_matchTimeline_csv_name = "matchInfo_and_matchTimeline.csv"
     
     
     print("loading receiver")
     self.usersLeague_receiver = usersLeagueReceiver.UsersLeagueReceiver(
         self.API_KEY, self.usersLeague_csv_name)
     self.usersInfo_receiver = usersInfoReceiver.UsersInfoReceiver(
         self.API_KEY, self.usersInfo_csv_name)
     self.usersMatchlist_receiver = usersMatchlistReceiver.UsersMatchlistReceiver(
         self.API_KEY, self.usersMatchlist_csv_name)
     self.matchInfo_receiver = matchInfoReceiver.MatchInfoReceiver(
         self.API_KEY, self.matchInfo_csv_name)
     self.matchTimeline_receiver = matchTimelineReceiver.MatchTimelineReceiver(
         self.API_KEY, self.matchTimeline_csv_name)
     
     self.matchInfo_and_matchTimeline_receiver = matchInfo_and_matchTimelineReceiver.MatchInfo_and_MatchTimelineReceiver(
         self.API_KEY, self.matchInfo_and_matchTimeline_csv_name)
     
     print("check DB connection")
     self.database_controller = db_controller.DBController()
Exemple #2
0
 def insert_init_status(self, zone_project_name, hash_key, create_time):
     db_conn = db_controller.DBController()
     db_conn.insert_init_update_status(project_name=zone_project_name,
                                       hash_key=hash_key,
                                       code_version=self.code_version,
                                       create_time=create_time)
Exemple #3
0
 def get_ip_list(self, zone_name):
     db_conn = db_controller.DBController()
     ip_list = db_conn.select_ip_for_ip(project_name=self.project,
                                        zone_name=zone_name)
     return ip_list
Exemple #4
0
 def get_zone(self):
     db_conn = db_controller.DBController()
     zone_list = db_conn.select_zone_for_ip(project_name=self.project)
     return zone_list