c2 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/c2/reporter/bucket.rb +1 -1
- metadata +3 -3
@@ -43,7 +43,7 @@ class C2::Reporter::Bucket
|
|
43
43
|
|
44
44
|
def refresh
|
45
45
|
@series_cache = {}
|
46
|
-
started_at = self.scope.where(:created_at.ne => nil).
|
46
|
+
started_at = self.scope.where(:created_at.ne => nil).order(:created_at).only(:created_at).first().created_at || Time.now
|
47
47
|
self.scope.each do |item|
|
48
48
|
date = (item.created_at || started_at).to_date
|
49
49
|
@series.each do |key,value|
|
metadata
CHANGED