We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef98a8 commit 944cff2Copy full SHA for 944cff2
app/controllers/static_pages_controller.rb
@@ -20,8 +20,8 @@ def stats
20
@range = 2012..2017
21
@range.each do |year|
22
@dojos[year] =
23
- Dojo.where(created_at:
24
- Time.zone.local(2012).beginning_of_year..Time.zone.local(year).end_of_year).count
+ Dojo.where(created_at: Time.zone.local(2012).beginning_of_year..Time.zone.local(year)
+ .end_of_year).select{|d| d.dojo_event_services.any?}.count
25
@events[year] =
26
EventHistory.where(evented_at:
27
Time.zone.local(year).beginning_of_year..Time.zone.local(year).end_of_year).count
0 commit comments