app/models/caboose_rets/commercial_property.rb in caboose-rets-0.0.42 vs app/models/caboose_rets/commercial_property.rb in caboose-rets-0.0.43
- old
+ new
@@ -20,9 +20,10 @@
CabooseRets::RetsImporter.download_property_images(self)
end
def self.import_from_mls(mls_acct)
CabooseRets::RetsImporter.import("(MLS_ACCT=*#{mls_acct}*)", 'Property', 'COM')
+ return if !self.exists?(:mls_acct => mls_acct)
p = self.find(mls_acct.to_i)
CabooseRets::RetsImporter.download_property_images(p)
end
def parse(data)