mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Rebase remove AI coding from excluded categories (#499)
Co-authored-by: afonsoingles <110609949+afonsoingles@users.noreply.github.com>
This commit is contained in:
@@ -240,7 +240,7 @@ module Heartbeatable
|
||||
model_class = scope.model
|
||||
base_scope = model_class.all.with_valid_timestamps
|
||||
|
||||
excluded_categories = [ "browsing", "ai coding", "meeting", "communicating" ]
|
||||
excluded_categories = [ "browsing", "meeting", "communicating" ]
|
||||
base_scope = base_scope.where.not("LOWER(category) IN (?)", excluded_categories)
|
||||
|
||||
if scope.where_values_hash["user_id"]
|
||||
|
||||
@@ -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", "ai coding", "meeting", "communicating" ])
|
||||
@scope = @scope.where.not("LOWER(category) IN (?)", [ "browsing", "meeting", "communicating" ])
|
||||
@user = user
|
||||
@boundary_aware = boundary_aware
|
||||
|
||||
|
||||
Reference in New Issue
Block a user