File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2350,10 +2350,16 @@ def record_usage(self, params):
23502350 params ['package' ]
23512351 )
23522352
2353- # new stats
2353+ # stats.sublimetext.io
23542354 url = self .settings .get ('submit_usage_url' , '' )
23552355 if url :
2356- url += '?' + urlencode ({"pkg" : params ["package" ], "type" : params ["operation" ]})
2356+ # rename some parameters
2357+ params ["pkg" ] = params ["package" ]
2358+ del params ["package" ]
2359+ params ["type" ] = params ["operation" ]
2360+ del params ["operation" ]
2361+ # create url
2362+ url += '?' + urlencode (params )
23572363
23582364 try :
23592365 result = http_get (url , self .settings , 'Error submitting usage information.' )
@@ -2366,5 +2372,5 @@ def record_usage(self, params):
23662372 '''
23672373 Error submitting usage information for %s
23682374 ''' ,
2369- params ['package ' ]
2375+ params ['pkg ' ]
23702376 )
You can’t perform that action at this time.
0 commit comments