app/database/db_functions.py
def return_fighter_career_history(self, fighter_name):
        """Return fighter fights in order to display them in the search_page.py."""

        fighter_first_name = fighter_name.split()[0]
        fighter_surname = fighter_name.split()[1]

        # fighter's career_history table is made by his first & last name
        return self.connection.cursor().execute(
            f"""SELECT * FROM {fighter_first_name}_{fighter_surname}"""
        ).fetchall()
Return fighter fights in order to display them in the search_page.py.
Return fighter fights in order to display them in the search_page.py.
Return fighter fights in order to display them in the search_page . py .
def return_fighter_career_history(self, fighter_name):
        fighter_first_name = fighter_name.split()[0]
        fighter_surname = fighter_name.split()[1]
        return self.connection.cursor().execute(
            f"""SELECT * FROM {fighter_first_name}_{fighter_surname}"""
        ).fetchall()
def return_fighter_career_history ( self , fighter_name ) : fighter_first_name = fighter_name . split ( ) [ 0 ] fighter_surname = fighter_name . split ( ) [ 1 ] return self . connection . cursor ( ) . execute ( f"""SELECT * FROM {fighter_first_name}_{fighter_surname}""" ) . fetchall ( )
Return fighter fights in order to display them in the search_page.py.
Return fighter fights in order to display them in the search_page . py .
"""Return fighter fights in order to display them in the search_page.py.""" # fighter's career_history table is made by his first & last name
self
fighter_name