From 4bef3654b00e77663a789801eff8ca8624609e89 Mon Sep 17 00:00:00 2001 From: Kartikey Chauhan Date: Fri, 5 Sep 2025 13:47:18 +0530 Subject: [PATCH] Revert "Rebase remove AI coding from excluded categories (#499)" This reverts commit 1cccb3b44d956ba918c66eba701d741f2a2aa444. --- app/models/concerns/heartbeatable.rb | 2 +- lib/test_wakatime_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/heartbeatable.rb b/app/models/concerns/heartbeatable.rb index 2fc051a..4063817 100644 --- a/app/models/concerns/heartbeatable.rb +++ b/app/models/concerns/heartbeatable.rb @@ -240,7 +240,7 @@ module Heartbeatable model_class = scope.model base_scope = model_class.all.with_valid_timestamps - excluded_categories = [ "browsing", "meeting", "communicating" ] + excluded_categories = [ "browsing", "ai coding", "meeting", "communicating" ] base_scope = base_scope.where.not("LOWER(category) IN (?)", excluded_categories) if scope.where_values_hash["user_id"] diff --git a/lib/test_wakatime_service.rb b/lib/test_wakatime_service.rb index a81d9eb..9295e6b 100644 --- a/lib/test_wakatime_service.rb +++ b/lib/test_wakatime_service.rb @@ -8,7 +8,7 @@ class TestWakatimeService @scope = @scope.with_valid_timestamps # yeah macha we're removing unwated categories - @scope = @scope.where.not("LOWER(category) IN (?)", [ "browsing", "meeting", "communicating" ]) + @scope = @scope.where.not("LOWER(category) IN (?)", [ "browsing", "ai coding", "meeting", "communicating" ]) @user = user @boundary_aware = boundary_aware