@@ -73,10 +73,9 @@ async def insertPlayerRank(
7373
7474 content_data = {"inserted" : xquery , "xtime" : time .perf_counter () - tic }
7575 if xquery < 1 :
76- response .body = json .dumps (content_data ).encode ('utf-8' )
76+ # response.body = json.dumps(content_data).encode('utf-8')
7777 response .headers ['content-type' ] = 'application/json'
7878 response .status_code = status .HTTP_304_NOT_MODIFIED
79- response .headers ['content-type' ] = 'application/json'
8079 return response
8180
8281 # Prepare the response
@@ -126,7 +125,7 @@ async def updatePlayerRankPoints(
126125
127126 content_data = {"updated" : xquery , "xtime" : time .perf_counter () - tic }
128127 if xquery < 1 :
129- response .body = json .dumps (content_data ).encode ('utf-8' )
128+ # response.body = json.dumps(content_data).encode('utf-8')
130129 response .headers ['content-type' ] = 'application/json'
131130 response .status_code = status .HTTP_304_NOT_MODIFIED
132131 return response
@@ -181,7 +180,7 @@ async def updatePlayerRankPoints2(
181180
182181 content_data = {"updated" : xquery , "xtime" : time .perf_counter () - tic }
183182 if xquery < 1 :
184- response .body = json .dumps (content_data ).encode ('utf-8' )
183+ # response.body = json.dumps(content_data).encode('utf-8')
185184 response .headers ['content-type' ] = 'application/json'
186185 response .status_code = status .HTTP_304_NOT_MODIFIED
187186 return response
@@ -221,7 +220,7 @@ async def updatePlayerRank(
221220
222221 content_data = {"updated" : xquery , "xtime" : time .perf_counter () - tic }
223222 if xquery < 1 :
224- response .body = json .dumps (content_data ).encode ('utf-8' )
223+ # response.body = json.dumps(content_data).encode('utf-8')
225224 response .headers ['content-type' ] = 'application/json'
226225 response .status_code = status .HTTP_304_NOT_MODIFIED
227226 return response
@@ -294,7 +293,7 @@ async def updateLastSeen(
294293
295294 content_data = {"updated" : xquery , "xtime" : time .perf_counter () - tic }
296295 if xquery < 1 :
297- response .body = json .dumps (content_data ).encode ('utf-8' )
296+ # response.body = json.dumps(content_data).encode('utf-8')
298297 response .headers ['content-type' ] = 'application/json'
299298 response .status_code = status .HTTP_304_NOT_MODIFIED
300299 return response
@@ -646,7 +645,7 @@ async def updatePlayerConnections(
646645
647646 content_data = {"updated" : xquery , "xtime" : time .perf_counter () - tic }
648647 if xquery < 1 :
649- response .body = json .dumps (content_data ).encode ('utf-8' )
648+ # response.body = json.dumps(content_data).encode('utf-8')
650649 response .headers ['content-type' ] = 'application/json'
651650 response .status_code = status .HTTP_304_NOT_MODIFIED
652651 return response
0 commit comments