Skip to content

Commit da9a328

Browse files
committed
Add manually checked active dojos for easy checks
1 parent 6442e1e commit da9a328

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/controllers/events_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ def index
1717
def latest
1818
@url = request.url
1919
@latest_event_by_dojos = []
20+
@active_dojos_verified = [
21+
'和歌山', '市川真間', '泉', '石垣', '南紀田辺', '三好', '市川', 'ひばりヶ丘', '伊勢',
22+
]
2023
Dojo.active.each do |dojo|
2124
latest_event = dojo.event_histories.newest.first
22-
if latest_event.nil?
25+
if @active_dojos_verified.include?(dojo.name) or latest_event.nil?
2326
@latest_event_by_dojos << {
2427
id: dojo.id,
2528
name: dojo.name,

0 commit comments

Comments
 (0)