Merge pull request #3916 from tgxworld/user_statistics
FIX: Wrong period for quarterly reports.
This commit is contained in:
commit
61f4c157b2
|
@ -28,8 +28,8 @@ class DirectoryItem < ActiveRecord::Base
|
||||||
since = case period_type
|
since = case period_type
|
||||||
when :daily then 1.day.ago
|
when :daily then 1.day.ago
|
||||||
when :weekly then 1.week.ago
|
when :weekly then 1.week.ago
|
||||||
when :quarterly then 3.weeks.ago
|
|
||||||
when :monthly then 1.month.ago
|
when :monthly then 1.month.ago
|
||||||
|
when :quarterly then 3.months.ago
|
||||||
when :yearly then 1.year.ago
|
when :yearly then 1.year.ago
|
||||||
else 1000.years.ago
|
else 1000.years.ago
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue