From 5b5a7fd809d6b9d5389754e8a276277b83170ecf Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Mon, 14 Jul 2025 13:54:28 -0700 Subject: [PATCH] Don't inclusive search in wakatime_service on both start/end (#413) --- lib/wakatime_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wakatime_service.rb b/lib/wakatime_service.rb index ce7f965..f42abfa 100644 --- a/lib/wakatime_service.rb +++ b/lib/wakatime_service.rb @@ -9,7 +9,7 @@ class WakatimeService @start_date = start_date || @scope.minimum(:time) || 1.year.ago.to_i @end_date = end_date || @scope.maximum(:time) || Time.current.to_i - @scope = @scope.where(time: @start_date..@end_date) + @scope = @scope.where("time >= ? AND time < ?", @start_date, @end_date) @limit = limit @limit = nil if @limit&.zero?