Don't inclusive search in wakatime_service on both start/end (#413)

This commit is contained in:
Max Wofford
2025-07-14 13:54:28 -07:00
committed by GitHub
parent 3fc69e4ad2
commit 5b5a7fd809

View File

@@ -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?