cohortly 0.0.9 → 0.0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,8 +46,8 @@ module Cohortly
46
46
  end
47
47
 
48
48
  def user_count_in_cohort(report_key)
49
- params = { :user_start_date => { :$gt => key_to_time(report_key),
50
- :$lt => (key_to_time(report_key) + 1.week)}}
49
+ params = { :user_start_date => { :$gt => key_to_time(report_key) - 1.week,
50
+ :$lt => (key_to_time(report_key) )}}
51
51
  params[:tags] = { :$in => groups } if self.groups
52
52
  Cohortly::Metric.collection.distinct(:user_id, params).length
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Cohortly
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.9.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cohortly
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.0.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruce Hauman