def zip4_lookup(self, force=False): if force or not self.zip4: try: zip4 = address_inferrence_service.zip4_lookup(self.street_address, self.city, self.state, self.zip5) self.update(zip4=zip4) except: pass
def resolve_zip4(self, force=False): if force or not self.zip4.data: self.zip4.data = address_inferrence_service.zip4_lookup(self.street_address.data, self.city.data, self.state.data, self.zip5.data )
def zip4_lookup(self, force=False): if force or not self.zip4: try: zip4 = address_inferrence_service.zip4_lookup( self.street_address, self.city, self.state, self.zip5) self.update(zip4=zip4) except: pass
def zip4_lookup(self, force=False): if force or not self.zip4: try: self.zip4 = address_inferrence_service.zip4_lookup(self.street_address, self.city, self.state, self.zip5 ) db.session.commit() except: db.session.rollback()
def resolve_zip4(self, force=False): if force or not self.zip4.data: self.zip4.data = address_inferrence_service.zip4_lookup( self.street_address.data, self.city.data, self.state.data, self.zip5.data)