app/database/db_functions.py
def return_certain_fighter_list(self, condition):
        """Return certain fighter list based on selected option."""

        # construct entire db condition
        db_full_command = f"{constants.DB_COMMAND_PREFACE} {condition}"

        # grab from db proper data
        fighters_list = self.connection.cursor().execute(db_full_command).fetchall()

        if 'LAST_STREAK' not in condition:
            return fighters_list
        return self.sort_fighters_by_their_last_streak(fighters_list)
Return certain fighter list based on selected option.
Return certain fighter list based on selected option.
Return certain fighter list based on selected option .
def return_certain_fighter_list(self, condition):
        db_full_command = f"{constants.DB_COMMAND_PREFACE} {condition}"
        fighters_list = self.connection.cursor().execute(db_full_command).fetchall()
        if 'LAST_STREAK' not in condition:
            return fighters_list
        return self.sort_fighters_by_their_last_streak(fighters_list)
def return_certain_fighter_list ( self , condition ) : db_full_command = f"{constants.DB_COMMAND_PREFACE} {condition}" fighters_list = self . connection . cursor ( ) . execute ( db_full_command ) . fetchall ( ) if 'LAST_STREAK' not in condition : return fighters_list return self . sort_fighters_by_their_last_streak ( fighters_list )
Return certain fighter list based on selected option.
Return certain fighter list based on selected option .
"""Return certain fighter list based on selected option.""" # construct entire db condition # grab from db proper data
self
condition