Revert "Rebase remove AI coding from excluded categories (#499)"

This reverts commit 1cccb3b44d.
This commit is contained in:
Kartikey Chauhan
2025-09-05 13:47:18 +05:30
committed by GitHub
parent 1cccb3b44d
commit 4bef3654b0
2 changed files with 2 additions and 2 deletions

View File

@@ -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"]

View File

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