caboose-rets 0.1.91 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5d0e8e4a02c74dd26eba192d0b0eccf960e8f5c338f8e089bd81e8f975e9cfc
|
4
|
+
data.tar.gz: a7b6022aa279ec693c9a08cfd29c36efb779988f436ecf20debd0cd4254491fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a912cbe331515e163acd5bbc19bff2cfbfe74e59f38e52685e6b7fec221aaecd50fa2169e90819db33edbd3e740f2f7ed8b14e243c4908ec018478193cb59c
|
7
|
+
data.tar.gz: 979aed2316820ecd1fc2ad2b8c0406fd687dca0ad9fe68988dc902c30451e97255a92d4f300142f153f405b3aa2b1691ee50e327208cbf61aea9f0f3a6536b59
|
@@ -108,7 +108,13 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
108
108
|
# self.income_rental = data['GrossIncome']
|
109
109
|
self.interior_features = data['InteriorFeatures']
|
110
110
|
self.land_features_extras = data['LotFeatures']
|
111
|
-
|
111
|
+
begin
|
112
|
+
self.latitude = data['X_Location'].split(',')[0].to_f
|
113
|
+
self.longitude = data['X_Location'].split(',')[1].to_f
|
114
|
+
rescue
|
115
|
+
self.latitude = self.latitude
|
116
|
+
self.longitude = self.longitude
|
117
|
+
end
|
112
118
|
# self.landscaping = data['Landscaping']
|
113
119
|
self.laundry = data['LaundryFeatures']
|
114
120
|
self.legal_description = data['TaxLegalDescription']
|
@@ -126,7 +132,7 @@ class CabooseRets::Property <ActiveRecord::Base
|
|
126
132
|
self.list_office_name = data['ListOfficeName']
|
127
133
|
self.list_office_phone = data['ListOfficePhone']
|
128
134
|
self.list_price = data['ListPrice'].blank? ? self.list_price : data['ListPrice'].to_i
|
129
|
-
|
135
|
+
|
130
136
|
self.lot_description = data['LotFeatures']
|
131
137
|
self.lot_dimensions = data['LotSizeDimensions']
|
132
138
|
self.lot_dim_source = data['LotDimensionsSource']
|
@@ -139,6 +139,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
139
139
|
:select => [m.remote_key_field],
|
140
140
|
:querytype => 'DMQL2',
|
141
141
|
:query => quer,
|
142
|
+
:limit => 1000,
|
142
143
|
:standard_names_only => true,
|
143
144
|
:timeout => -1
|
144
145
|
}
|
@@ -162,6 +163,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
162
163
|
:class => class_type,
|
163
164
|
:select => [m.remote_key_field],
|
164
165
|
:querytype => 'DMQL2',
|
166
|
+
:limit => 1000,
|
165
167
|
:query => "(PhotosChangeTimestamp=#{d1}+)AND(OriginatingSystemName=WESTAL)",
|
166
168
|
:standard_names_only => true,
|
167
169
|
:timeout => -1
|
@@ -478,6 +480,7 @@ class CabooseRets::RetsImporter # < ActiveRecord::Base
|
|
478
480
|
:class => class_type,
|
479
481
|
:query => "(#{m.date_modified_field}=#{date_modified}T00:00:01+)AND(#{statusquery})AND(OriginatingSystemName=WESTAL)",
|
480
482
|
:standard_names_only => true,
|
483
|
+
:limit => 1000,
|
481
484
|
:timeout => -1
|
482
485
|
}
|
483
486
|
count = 0
|
data/lib/caboose_rets/version.rb
CHANGED
data/lib/tasks/caboose_rets.rake
CHANGED
@@ -128,6 +128,33 @@ namespace :caboose_rets do
|
|
128
128
|
desc "Import Image"
|
129
129
|
task :img => :environment do
|
130
130
|
CabooseRets::RetsImporter.download_missing_images
|
131
|
+
# @@config = {
|
132
|
+
# 'url' => nil,
|
133
|
+
# 'username' => nil,
|
134
|
+
# 'password' => nil,
|
135
|
+
# 'temp_path' => nil,
|
136
|
+
# 'log_file' => nil,
|
137
|
+
# 'media_base_url' => nil
|
138
|
+
# }
|
139
|
+
# config = YAML::load(File.open("#{Rails.root}/config/rets_importer.yml"))
|
140
|
+
# config = config[Rails.env]
|
141
|
+
# config.each { |key,val| @@config[key] = val }
|
142
|
+
# client = RETS::Client.login(
|
143
|
+
# :url => config['url'],
|
144
|
+
# :username => config['username'],
|
145
|
+
# :password => config['password']
|
146
|
+
# )
|
147
|
+
# params = {
|
148
|
+
# :search_type=>"Property",
|
149
|
+
# :class=>"Property",
|
150
|
+
# :select=>["ListingId"],
|
151
|
+
# :query=>"(ModificationTimestamp=2019-01-24T13:45:00+)AND(OriginatingSystemName=WESTAL)",
|
152
|
+
# :timeout=>-1,
|
153
|
+
# :limit => 1000
|
154
|
+
# }
|
155
|
+
# client.search(params) do |data|
|
156
|
+
# puts data
|
157
|
+
# end
|
131
158
|
end
|
132
159
|
|
133
160
|
desc "Re-import property details"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-rets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.92
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caboose-cms
|