Skip to content

Commit a33b3e8

Browse files
committed
chore: fix recent matchs display
1 parent a1a2f01 commit a33b3e8

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/controllers/home_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def find_next_match
3232

3333
def find_recent_matches(limit)
3434
@schedule.select { |m| m["Winner"].present? }
35-
.last(limit)
35+
.first(limit)
3636
end
3737

3838
def detect_phase(schedule)

lib/tasks/leaguepedia.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ namespace :leaguepedia do
106106
puts "devdocs/import_data.json not found — skipping stats import."
107107
end
108108

109+
# ── 4. Clear MemoryStore so first web request gets fresh DB data ──
110+
Rails.cache.clear rescue nil
111+
109112
puts "Bootstrap complete."
110113
end
111114

0 commit comments

Comments
 (0)