def print_h2h_fixtures(self, count=5, before=datetime.datetime.now()): print("H2H FIXTURES") last_h2h = self.get_h2h_fixtures(count, before) print(FixturesOperation.to_string(last_h2h)) print(FixturesOperation.stats(last_h2h, self.home_team.team_id), '\n') print("H2H FIXTURES H/A") last_h_a_h2h = self.get_h2h_h_a_fixtures(count, before) print(FixturesOperation.to_string(last_h_a_h2h)) print(FixturesOperation.stats(last_h_a_h2h, self.home_team.team_id))
def print_away_fixtures(self, count=5, before=datetime.datetime.now()): print("AWAY FIXTURES:", self.name) fixtures = self.get_away_fixtures(count, before) print(FixturesOperation.to_string(fixtures)) print(FixturesOperation.stats(fixtures, self.team_id))