From a688b0bb067adffe978fb321c9f1f625630771fd Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sat, 26 Apr 2025 19:02:53 +0200 Subject: [PATCH] show only one year --- mood.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mood.rb b/mood.rb index b7bcf91..bb3faee 100644 --- a/mood.rb +++ b/mood.rb @@ -23,6 +23,6 @@ class Mood < ActiveRecord::Base log_mood << [ current_date.to_s, current_mode ] current_date += 1 end - log_mood.each_slice(7).to_a + log_mood.each_slice(7).to_a.last(54) end end