Ejemplo n.º 1
0
    def update_accountdir(self, ACCOUNTDIR):
        """ Updates player handles and checks for new replays in the new accountdir.
        This doesn't remove replays that are no longer in the directory. """
        names, handles = find_names_and_handles(ACCOUNTDIR)
        replays = find_replays(ACCOUNTDIR)

        self.main_names = names
        self.main_handles = handles
        self.add_replays(replays)
        self.current_replays = replays
        self.update_data()
        self.save_cache()
    def __init__(self, ACCOUNTDIR):

        names, handles = find_names_and_handles(ACCOUNTDIR)

        self.main_names = names
        self.main_handles = handles
        self.parsed_replays = set()
        self.ReplayData = list()
        self.ReplayDataAll = list()
        self.cachefile = truePath('cache_overall_stats')
        self.winrate_data = dict()
        self.current_replays = find_replays(ACCOUNTDIR)
        self.closing = False
        self.full_analysis_finished = False
        self.name_handle_dict = dict()