engine/process.py
def del_data(self, message):
        """Delete all features and the associated answers
           for a survey from features and answers tables."""
        cursor.execute(f"select id from {self.db}features where survey = '{self.get_survey(message)}' and "
                       f"ans_check = 1")
        for row in cursor.fetchall():
            cursor.execute(f"delete from {self.db}answers where f_id = {row[0]}")
            connection.commit()

        cursor.execute(f"delete from {self.db}features where survey = '{self.get_survey(message)}' and ans_check = 1")
        connection.commit()
Delete all features and the associated answers
           for a survey from features and answers tables.
Delete all features and the associated answers
for a survey from features and answers tables.
Delete all features and the associated answers for a survey from features and answers tables .
def del_data(self, message):
        cursor.execute(f"select id from {self.db}features where survey = '{self.get_survey(message)}' and "
                       f"ans_check = 1")
        for row in cursor.fetchall():
            cursor.execute(f"delete from {self.db}answers where f_id = {row[0]}")
            connection.commit()
        cursor.execute(f"delete from {self.db}features where survey = '{self.get_survey(message)}' and ans_check = 1")
        connection.commit()
def del_data ( self , message ) : cursor . execute ( f"select id from {self.db}features where survey = '{self.get_survey(message)}' and " f"ans_check = 1" ) for row in cursor . fetchall ( ) : cursor . execute ( f"delete from {self.db}answers where f_id = {row[0]}" ) connection . commit ( ) cursor . execute ( f"delete from {self.db}features where survey = '{self.get_survey(message)}' and ans_check = 1" ) connection . commit ( )
Delete all features and the associated answers
for a survey from features and answers tables.
Delete all features and the associated answers for a survey from features and answers tables .
"""Delete all features and the associated answers
           for a survey from features and answers tables."""
self
message