caboose-rets 0.1.197 → 0.1.199

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ae9127c4ea1ed4c63d14cbd9276194add06de8cef432c5c7e239e09b34a51ba
4
- data.tar.gz: 889cccc0b40b15ba30301c00ae0722b917d7f68066a9d356f5b87469fac78814
3
+ metadata.gz: 10b3335574760bea42e853c4c2fa92a22fe69d437891f9f8c797717085194bf2
4
+ data.tar.gz: 0d38d67d87072622ade25442a6509482c597708aafb6fb6951bf675af5b4daaf
5
5
  SHA512:
6
- metadata.gz: 6a51961c562377fad60b8ae261aa63bbdab298f13698af76690860c9b3feef74a050389f40d0369287de1c7f0a332e77d42a8dc1f687b0bb4081573bdc41775f
7
- data.tar.gz: d3be76e4aa57f9bbbede583ab8546070b918479ba402982ecf7c9844a614a721d5769afb89345c6de0534ea1682d247c20d25fe309a0d1589b314072f9f0ae7e
6
+ metadata.gz: 9d3795fe30799268fc683d640596839717bafff3c31c142421bca193a156b5428d0b231485c7292331c499b9437f3b196e5619703e869f96bbd7b1a930a765aa
7
+ data.tar.gz: f55c7fde6d480e1bbffbc5ce43b038c10eb42ccece6e3869eb3a5ca00e58a5f2867023466ed854ba408abb8cad0b9ecd92c43724c3debe2be90c1900d2a6446e
@@ -233,7 +233,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
233
233
  self.import('Property', "ListingId eq '#{mls_id}'")
234
234
  p = CabooseRets::Property.where(:mls_number => mls_id.to_s).first
235
235
  if p != nil && p.status == 'Active'
236
- self.download_property_images(p) if save_images == true # && Rails.env.production?
236
+ self.download_property_images(p) if save_images
237
237
  if p.latitude.blank? || p.latitude == '0.0' || p.longitude.blank? || p.longitude == '0.0'
238
238
  self.update_coords(p)
239
239
  end
@@ -386,8 +386,8 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
386
386
  # `rm #{tmp_path}`
387
387
  # end
388
388
 
389
- rescue
390
- self.log3("Media",p.mls_number,"Error downloading images for property with MLS # #{p.mls_number}")
389
+ rescue Exception => err
390
+ self.log3("Media",p.mls_number,"Error downloading images for property with MLS # #{p.mls_number}: #{err}")
391
391
  end
392
392
 
393
393
  # If we downloaded new images, look for old images to delete.
@@ -362,7 +362,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
362
362
 
363
363
  p.latitude = coords['lat'].to_f
364
364
  p.longitude = coords['lng'].to_f
365
- p.save
365
+ p.save
366
366
  end
367
367
 
368
368
  def self.coords_from_address(address)
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.197'
2
+ VERSION = '0.1.199'
3
3
  end
@@ -218,7 +218,7 @@ namespace :caboose_rets do
218
218
  end
219
219
 
220
220
  task :test_import => :environment do
221
- CabooseRets::RetsImporter.import_one_property('146546')
221
+ CabooseRets::RetsImporter.import_properties('151429', true)
222
222
  end
223
223
 
224
224
  desc "Single Import Test"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-rets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.197
4
+ version: 0.1.199
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry