mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
encode cursorpos in json as int not str
This commit is contained in:
parent
ef77e1f178
commit
75c219055d
@ -509,7 +509,7 @@ class SendHeartbeatsThread(threading.Thread):
|
||||
heartbeat['alternate_project'] = project_name
|
||||
|
||||
if cursorpos is not None:
|
||||
heartbeat['cursorpos'] = '{0}'.format(cursorpos)
|
||||
heartbeat['cursorpos'] = cursorpos
|
||||
|
||||
return heartbeat
|
||||
|
||||
@ -529,7 +529,7 @@ class SendHeartbeatsThread(threading.Thread):
|
||||
if heartbeat.get('alternate_project'):
|
||||
cmd.extend(['--alternate-project', heartbeat['alternate_project']])
|
||||
if heartbeat.get('cursorpos') is not None:
|
||||
cmd.extend(['--cursorpos', heartbeat['cursorpos']])
|
||||
cmd.extend(['--cursorpos', '{0}'.format(heartbeat['cursorpos'])])
|
||||
for pattern in self.ignore:
|
||||
cmd.extend(['--exclude', pattern])
|
||||
for pattern in self.include:
|
||||
|
Loading…
Reference in New Issue
Block a user