Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/concerns/heartbeatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def duration_seconds_boundary_aware(scope, start_time, end_time)
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"]
Expand Down
2 changes: 1 addition & 1 deletion lib/test_wakatime_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def initialize(user: nil, specific_filters: [], allow_cache: true, limit: 10, st
@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

Expand Down