caboose-rets 0.1.162 → 0.1.167

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: d8c8d11ba12eb19f306b37dda313b8c01f004624ab63a286b050edf22223513d
4
- data.tar.gz: c72ce936ab2069d0318e9935566923079264d1942e16715476c3fd7a74681a9a
3
+ metadata.gz: 6c9c54d751e273164fdfd0417d2f0627e029f3eb45df52fbe8ccb269f83b3cdb
4
+ data.tar.gz: d942c23cbd9b2a1b3d4eb1e774892e2707e8674fe532fe18c633bddae88d726f
5
5
  SHA512:
6
- metadata.gz: a30e4ef8f1ea47ebcfc1a55703dd94e18004774218158b61a748ee60b650badf70a71fd51df486dc2adf545c7080e1b6c664b491c0aaed396f49e079c4bf026c
7
- data.tar.gz: 8204ede788b546815ba4afd896984ea15cd5019b84817a3ce9f9074cd32e452e4e680f26cad2f580d249d4ca07e2c3f2df17cba73a526e2d81033b06f6ceeec4
6
+ metadata.gz: 69641498cb92cc18e5cc05ef709c5b9a5db1b26dea9cd17347a2fd185e58c36e01715b3b0079c3cb9da6a72c1c8ed9b232559bccb65ca02bc81e359117e9faa0
7
+ data.tar.gz: 336162f32bbb6c41030fa588c0389e7f954fb2f7a116cac5f67f8a0326e906139285b26ed1f773d55a023145357c750f4867205230d5145bcacd7f1b56f709a7
@@ -17,8 +17,7 @@ module CabooseRets
17
17
 
18
18
  # GET /admin/mls/user-report
19
19
  def user_report
20
- d = DateTime.now - 30.days
21
- @users = Caboose::User.where(:site_id => @site.id).where("date_created > ?", d).order('id desc').all
20
+ @users = Caboose::User.where(:site_id => @site.id).where("rets_agent_mls_id is not null").order('id desc').limit(500)
22
21
  render :layout => 'caboose/admin'
23
22
  end
24
23
 
@@ -39,7 +39,7 @@ xml.instruct! :xml, :version => "1.0"
39
39
  elsif !property.alternate_link.blank? && @use_alternate_link == true
40
40
  xml.url(property.alternate_link)
41
41
  else
42
- xml.url("https://" + domain + "/properties/#{property.mls_number}/details")
42
+ xml.url("https://" + domain + "/properties/#{property.mls_number}/details?utm_source=Nine&utm_medium=Facebook&utm_campaign=Retargeting")
43
43
  end
44
44
  xml.year_built(property.year_built)
45
45
  if !property.property_type.blank?
@@ -12,12 +12,12 @@ xml.rss :version => "2.0", "xmlns:g" => "http://base.google.com/ns/1.0" do
12
12
  xml.g(:id, property.mls_number)
13
13
  xml.g(:title, property.full_address)
14
14
  xml.g(:description, property.public_remarks)
15
- xml.g(:link, "https://" + domain + "/properties/#{property.mls_number}/details")
15
+ xml.g(:link, "https://" + domain + "/properties/#{property.mls_number}/details?utm_source=Nine&utm_medium=Facebook&utm_campaign=Retargeting")
16
16
  first_image = property.images.first if property.images
17
17
  m = Caboose::Media.where(:id => first_image.media_id).first if first_image && !first_image.media_id.blank?
18
18
  if m && m.image
19
19
  xml.g(:image_link, "https:" + m.image.url(:large))
20
- else
20
+ else
21
21
  xml.g(:image_link, 'https://cabooseit.s3.amazonaws.com/rets/house.png')
22
22
  end
23
23
  if !property.construction_status.blank?
@@ -1,7 +1,5 @@
1
1
  <h1>User Report</h1>
2
2
 
3
- <p>Last 30 Days</p>
4
-
5
3
  <p>New users registered: <%= @users.count %></p>
6
4
 
7
5
  <ul class="users">
@@ -1,3 +1,3 @@
1
1
  module CabooseRets
2
- VERSION = '0.1.162'
2
+ VERSION = '0.1.167'
3
3
  end
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.162
4
+ version: 0.1.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms