form.py
def convert_to_int(self, to_convert):
        """
        Converts strings to integers and tests if the input was an integer.
        User textarea input from reviews should not come into this method.
        input: self and a number to be converted to the integer format
        output: the same number as an integer
        """
        try:
            to_convert = int(to_convert)
        except ValueError:
            self.display_error('Expected integer was not a number')

        return to_convert

        Converts strings to integers and tests if the input was an integer.
        User textarea input from reviews should not come into this method.
        input: self and a number to be converted to the integer format
        output: the same number as an integer
        
Converts strings to integers and tests if the input was an integer.
User textarea input from reviews should not come into this method.
input: self and a number to be converted to the integer format
output: the same number as an integer
Converts strings to integers and tests if the input was an integer . User textarea input from reviews should not come into this method . input : self and a number to be converted to the integer format output : the same number as an integer
def convert_to_int(self, to_convert):
        try:
            to_convert = int(to_convert)
        except ValueError:
            self.display_error('Expected integer was not a number')
        return to_convert
def convert_to_int ( self , to_convert ) : try : to_convert = int ( to_convert ) except ValueError : self . display_error ( 'Expected integer was not a number' ) return to_convert
Converts strings to integers and tests if the input was an integer.
Converts strings to integers and tests if the input was an integer .
"""
        Converts strings to integers and tests if the input was an integer.
        User textarea input from reviews should not come into this method.
        input: self and a number to be converted to the integer format
        output: the same number as an integer
        """
self
to_convert