def save_match(match: list, match_date: str):
    match_dict = match[0]
    match_file_name = 'match_' + '__'.join([
        match_dict['First_Team']['Name'], match_dict['Second_Team']['Name'],
        match_date
    ])
    storage.save_data(match, match_file_name, templates.match_folder)
def save_match_players(match_players: list, match_teams: dict,
                       match_date: str):
    match_players_file_name = 'match_players_' + '__'.join([
        match_teams['First_Team']['Name'], match_teams['Second_Team']['Name'],
        match_date
    ])
    storage.save_data(match_players, match_players_file_name,
                      templates.match_players_folder)
Beispiel #3
0
def save_players_teams(players_teams, match_teams, b_date, folder_name):
    players_team_file_names = [
        'persons_Players_' +
        '__'.join(list(match_teams[i].values()) + [b_date]) for i in range(2)
    ]
    for i in range(len(players_team_file_names)):
        storage.save_data(players_teams[i], players_team_file_names[i],
                          folder_name)
def save_match_referee(match_referee: list, match_date: str):
    match_referee_dict = match_referee[0]
    match_referee_file_name = 'match_referee_' + '__'.join([
        match_referee_dict['First_Team']['Name'],
        match_referee_dict['Second_Team']['Name'], match_date,
        match_referee_dict['Last_Name']
    ])
    storage.save_data(match_referee, match_referee_file_name,
                      templates.match_referee_folder)
def save_referee_data(referee):
    referee_file_name = 'persons_' + '__'.join(referee.values())
    storage.save_data(referee, referee_file_name, templates.persons_folder)
Beispiel #6
0
def save_team(team):
    file_name = "team_" + '__'.join(list(team.values()))
    storage.save_data(team, file_name, templates.teams_folder)