You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the get_fixtures method is not returning fixtures without game week, e.g. at the point of writing the fixture with id 379 is not returned because it is not scheduled yet and therefore has no game week. The current implementation of the function iterates over all game week and retrieves the fixtures for these game weeks.
Should the method not simply return all fixtures as per below?
asyncdef__fpl_get_fixtures(self, return_json=False):
"""Returns a list of *all* fixtures. Information is taken from e.g.: https://fantasy.premierleague.com/api/fixtures/ https://fantasy.premierleague.com/api/fixtures/?event=1 :param return_json: (optional) Boolean. If ``True`` returns a list of ``dict``s, if ``False`` returns a list of :class:`Fixture` objects. Defaults to ``False``. :type return_json: bool :rtype: list """fixtures=awaitfetch(self.session, API_URLS["fixtures"])
ifreturn_json:
returnfixturesreturn [Fixture(fixture) forfixtureinfixtures]
The text was updated successfully, but these errors were encountered:
Currently, the get_fixtures method is not returning fixtures without game week, e.g. at the point of writing the fixture with id 379 is not returned because it is not scheduled yet and therefore has no game week. The current implementation of the function iterates over all game week and retrieves the fixtures for these game weeks.
Should the method not simply return all fixtures as per below?
The text was updated successfully, but these errors were encountered: