def parse_row(self, row):
     try:
         author = Author()
         author.author_type = self.parse_type(row['Risk'])
         if author.author_type == -1:
             return None
         author.author_full_name = unicode(row['AKA Name']).encode('ascii', 'ignore').decode('ascii')
         author.location = unicode(row['City'] + ' ' + row['Address'])
         author.geo_enabled = unicode(row['Location'])
         author.name=row['DBA Name']
         author.created_at = unicode(row['Inspection Date'])
         return author
     except:
         return None
 def parse_row(self, row):
     try:
         author = Author()
         author.author_type = self.parse_type(row['risk_category'])
         if author.author_type == -1:
             return None
         author.author_full_name = unicode(row['business_name']).encode('ascii', 'ignore').decode('ascii')
         author.name = unicode(author.author_full_name).encode('ascii', 'ignore').decode('ascii')
         author.location = unicode(row['business_city'] + ' ' + row['business_address'])
         author.geo_enabled = unicode(row['business_location'])
         if author.geo_enabled is None or author.geo_enabled == "":
             return None
         author.created_at = unicode(row['inspection_date'])
         return author
     except:
         logging.info("error with row:"+ str(row))
         return None