engine/process.py
def survey_check(self, message):
        """Control the message length. Check if the new survey name
           already exists. Return boolean."""
        if len(message.text) > 25:
            return

        cursor.execute(f"select exists (SELECT 1 FROM {self.db}questions WHERE "
                       f"survey = '{self.sub(message.text.lower())}' LIMIT 1)")
        return cursor.fetchall()[0][0]
Control the message length. Check if the new survey name
           already exists. Return boolean.
Control the message length. Check if the new survey name
already exists. Return boolean.
Control the message length . Check if the new survey name already exists . Return boolean .
def survey_check(self, message):
        if len(message.text) > 25:
            return
        cursor.execute(f"select exists (SELECT 1 FROM {self.db}questions WHERE "
                       f"survey = '{self.sub(message.text.lower())}' LIMIT 1)")
        return cursor.fetchall()[0][0]
def survey_check ( self , message ) : if len ( message . text ) > 25 : return cursor . execute ( f"select exists (SELECT 1 FROM {self.db}questions WHERE " f"survey = '{self.sub(message.text.lower())}' LIMIT 1)" ) return cursor . fetchall ( ) [ 0 ] [ 0 ]
Control the message length.
Control the message length .
"""Control the message length. Check if the new survey name
           already exists. Return boolean."""
self
message