We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a6b32 commit 845f8e4Copy full SHA for 845f8e4
app/controllers/api/hackatime/v1/hackatime_controller.rb
@@ -236,6 +236,9 @@ def handle_heartbeat(heartbeat_array)
236
237
parsed_ua = WakatimeService.parse_user_agent(heartbeat[:user_agent])
238
239
+ # if category is not set, just default to coding
240
+ heartbeat[:category] ||= "coding"
241
+
242
# special case: if the entity is "test.txt", this is a test heartbeat
243
if heartbeat[:entity] == "test.txt"
244
source_type = :test_entry
0 commit comments