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.
- data/app/models/cohortly/report.rb +2 -2
- data/lib/cohortly/version.rb +1 -1
- metadata +1 -1
@@ -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)
|
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
|
data/lib/cohortly/version.rb
CHANGED