fpl/models/user.py
async def _post_substitutions(self, lineup):
        """Helper for sending the POST requests with the new lineup.

        :param lineup: The new lineup.
        :type lineup: list
        """
        # Get CSRF token and create payload + headers
        payload = json.dumps({"chip": None, "picks": lineup})
        headers = get_headers("https://fantasy.premierleague.com/a/team/my")

        await post(
            self._session, API_URLS["user_team"].format(self.id) + "/",
            payload=payload, headers=headers)
Helper for sending the POST requests with the new lineup.

        :param lineup: The new lineup.
        :type lineup: list
        
Helper for sending the POST requests with the new lineup.
Helper for sending the POST requests with the new lineup .
async def _post_substitutions(self, lineup):
        payload = json.dumps({"chip": None, "picks": lineup})
        headers = get_headers("https://fantasy.premierleague.com/a/team/my")
        await post(
            self._session, API_URLS["user_team"].format(self.id) + "/",
            payload=payload, headers=headers)
async def _post_substitutions ( self , lineup ) : payload = json . dumps ( { "chip" : None , "picks" : lineup } ) headers = get_headers ( "https://fantasy.premierleague.com/a/team/my" ) await post ( self . _session , API_URLS [ "user_team" ] . format ( self . id ) + "/" , payload = payload , headers = headers )
Helper for sending the POST requests with the new lineup.
Helper for sending the POST requests with the new lineup .
"""Helper for sending the POST requests with the new lineup.

        :param lineup: The new lineup.
        :type lineup: list
        """ # Get CSRF token and create payload + headers
self
lineup
The new lineup.
The new lineup .