mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Don't inclusive search in wakatime_service on both start/end (#413)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user