Skip to content

Commit fac7758

Browse files
committed
chore: filter out unwanted categories
1 parent 08cd34e commit fac7758

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/test_wakatime_service.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ def initialize(user: nil, specific_filters: [], allow_cache: true, limit: 10, st
66
# trusting time from hackatime extensions.....
77
# @scope = @scope.coding_only
88
@scope = @scope.with_valid_timestamps
9+
10+
# yeah macha we're removing unwated categories
11+
@scope = @scope.where.not("LOWER(category) IN (?)", [ "browsing", "ai coding", "meeting", "communicating" ])
912
@user = user
1013
@boundary_aware = boundary_aware
1114

0 commit comments

Comments
 (0)