sample_project/tasks/importers.py
def parse_totals(self, item, field_name, source_name):
        """
        Parse numeric fields.
        """
        val = self.get_value(item, source_name)
        try:
            return int(val)
        except:
            return 0
def parse_totals(self, item, field_name, source_name):
        val = self.get_value(item, source_name)
        try:
            return int(val)
        except:
            return 0
def parse_totals ( self , item , field_name , source_name ) : val = self . get_value ( item , source_name ) try : return int ( val ) except : return 0
Parse numeric fields.
Parse numeric fields .