Beispiel #1
0
                            'batcard': i2bat,
                            'bowlcard': i2bowl
                        },
                        'inn3': {
                            'overview': i3stats,
                            'batcard': i3bat,
                            'bowlcard': i3bowl
                        },
                        'inn4': {
                            'overview': i4stats,
                            'batcard': i4bat,
                            'bowlcard': i4bowl
                        }
                    }
                    temp = m.result
                    totalovers = m.get_overs_in_match()
                    all_c_champ_matches.append(i)
                    games_season = games_season + 1
                except:
                    temp = 'None'
                    games_season = games_season + 1

            if temp == 'Match drawn':
                if totalovers <= max_overs:
                    matches_drawn.append(i)
                    rain_draws_season = rain_draws_season + 1

            # Save to json file for future use (if json doesn't already exist)
            if not os.path.isfile(path + '/Matches/' + i + '.json'):
                minfo = m.__dict__  # Convert to dictionary for saving as json
                dirname = path + '/Matches'