Open newtek1974 opened 10 months ago
ok i see... there is an error in their csv file. They have incorrect format (or at least different format than the rest of csv files). I will see if i can fix it as well.
Hello, I have the same problem with some leagues. Ex. Denmark, Austria. Were you able to fix it? Thank you very much
Good evening. When I try to create an extra league, I get this error:
File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\gui\dialogs\league.py", line 115, in _store_league matches_df, league = self._league_repository.create_league( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\database\repositories\league.py", line 90, in create_league return self._store_league( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\database\repositories\league.py", line 52, in _store_league matches_df = StatisticsEngine( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 51, in compute_statistics matches_df[column] = self._statistics_mapper[column]() File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 57, in _compute_last_n_home_wins return self._compute_last_results(team_index=1, target_result_value='H') File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 71, in _compute_last_results for season in range(self._max_season, self._min_season - 1, -1): TypeError: unsupported operand type(s) for -: 'str' and 'int'
this is the string I put in available league: Argentina,Primera-division,https://www.football-data.co.uk/new/ARG.csv,2012,extra,https://footystats.org/argentina/primera-division/fixtures
Great project I'm ready to contribute!