caboose-rets 0.1.40 → 0.1.41

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
  SHA1:
3
- metadata.gz: f01c7a76d77f4e392ce9c31d3c7b077d87062def
4
- data.tar.gz: bd0e59b12ba413a8325b1b0fe8475d7fb3271360
3
+ metadata.gz: 797cfd1b91e89149b9fdb0230e37a0f1161874a7
4
+ data.tar.gz: a78bce9795e10d4211b958b2fc590175dee3749f
5
5
  SHA512:
6
- metadata.gz: c8b70874d13400251062db4a1fc4eb0bf39c70db23e5b412649d3bfb8efea165aedbbb8610721dfda2f5f28feecf58802fcc9fc98db2ba0e789823c7c9e30394
7
- data.tar.gz: fd19765c00639c79958593740ced1420c964eedad3e577dcce0b97728002fef2864e59a924d8a556dadf2ed2c1c3bf80a4dbe0ffa2811c2017b7a5dc5bea8253
6
+ metadata.gz: 0ae933b766f267a4d30e62349d74e8b793845dd5d8ee17eabd26e2b5a2fafe1b8bf7b63b3cdbc7ff2bac6d8799e7206c92c5cd0029090e45aa387a95f0cd4d61
7
+ data.tar.gz: bb70b439366533694fcc71344ac4b113358e2aea2b7b92f6f4ed8d6e952526cdba6456e269c46e5f5d7b864b35c7fd6a7cdca428de7ff5aa41f1a77878e0fe59
@@ -127,29 +127,33 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
127
127
 
128
128
  def self.update_helper(class_type, date_modified, save_images = true)
129
129
  self.log "In update helper for #{class_type}"
130
+ self.log "Updating everything modified after #{date_modified}"
130
131
  m = self.meta(class_type)
131
132
  k = m.remote_key_field
132
133
  d = date_modified.in_time_zone(CabooseRets::timezone).strftime("%FT%T")
133
134
 
134
- statusquery = ""
135
- case class_type
136
- when 'Property' then statusquery = "MlsStatus=Active"
137
- when 'Office' then statusquery = "OfficeStatus=Active"
138
- when 'Member' then statusquery = "MemberStatus=Active"
139
- when 'OpenHouse' then statusquery = "OpenHouseKeyNumeric=0+"
140
- end
135
+ self.log "d: #{d}"
136
+
137
+ # statusquery = ""
138
+ # case class_type
139
+ # when 'Property' then statusquery = "MlsStatus=Active"
140
+ # when 'Office' then statusquery = "OfficeStatus=Active"
141
+ # when 'Member' then statusquery = "MemberStatus=Active"
142
+ # when 'OpenHouse' then statusquery = "OpenHouseKeyNumeric=0+"
143
+ # end
141
144
 
142
145
  params = {
143
146
  :search_type => m.search_type,
144
147
  :class => class_type,
145
148
  :select => [m.remote_key_field],
146
149
  :querytype => 'DMQL2',
147
- :query => "(#{m.date_modified_field}=#{d}+)AND(#{statusquery})",
150
+ :query => "(#{m.date_modified_field}=#{d}+)", #AND(#{statusquery})",
148
151
  :standard_names_only => true,
149
152
  :timeout => -1
150
153
  }
151
154
  self.log(params)
152
- self.client.search(params) do |data|
155
+ self.client.search(params) do |data|
156
+ self.log data
153
157
  case class_type
154
158
  when 'Property' then self.delay(:priority => 10, :queue => 'rets').import_properties(data[k], save_images)
155
159
  when 'Office' then self.delay(:priority => 10, :queue => 'rets').import_office( data[k], save_images)
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.40'
2
+ VERSION = '0.1.41'
3
3
  end
@@ -101,7 +101,7 @@ namespace :caboose_rets do
101
101
 
102
102
  desc "update helper"
103
103
  task :uh => :environment do
104
- CabooseRets::RetsImporter.update_helper('Property', last_updated)
104
+ CabooseRets::RetsImporter.update_helper('Property', last_updated, false)
105
105
  end
106
106
 
107
107
  #desc "Delete old rets properties"
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.40
4
+ version: 0.1.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry