mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
sending sublime text version in user agent
This commit is contained in:
parent
b8e2b73620
commit
3703a6374f
@ -147,11 +147,12 @@ class SendActionThread(threading.Thread):
|
|||||||
if not self.api_key:
|
if not self.api_key:
|
||||||
print('missing api key')
|
print('missing api key')
|
||||||
return
|
return
|
||||||
|
ua = 'sublime/%d sublime-wakatime/%s' % (ST_VERSION, __version__)
|
||||||
cmd = [
|
cmd = [
|
||||||
API_CLIENT,
|
API_CLIENT,
|
||||||
'--file', self.targetFile,
|
'--file', self.targetFile,
|
||||||
'--time', str('%f' % self.timestamp),
|
'--time', str('%f' % self.timestamp),
|
||||||
'--plugin', 'sublime-wakatime/%s' % __version__,
|
'--plugin', ua,
|
||||||
'--key', str(bytes.decode(self.api_key.encode('utf8'))),
|
'--key', str(bytes.decode(self.api_key.encode('utf8'))),
|
||||||
]
|
]
|
||||||
if self.isWrite:
|
if self.isWrite:
|
||||||
|
Loading…
Reference in New Issue
Block a user