hot fixed all the bugs introduced

This commit is contained in:
2023-06-09 16:59:27 +02:00
parent 489792a264
commit e2d49cf1f3
5 changed files with 14 additions and 6 deletions
+4 -3
View File
@@ -29,10 +29,11 @@ async def get_allplayer_stats(s, playerids, weaponid = "", weaponname= "",server
img_file = ""
if(len(res) == 1):
botmessage, img_file = make_donut_chart(botmessage, playerids, server)
return botmessage, img_file
else:
img_file = ""
return botmessage, img_file
return botmessage, img_file
async def getstats(s, playerid, weaponid = "", server = ""):
payload = {'player': playerid, 'weapon': weaponid, 'server': server}
async with s.get('https://tone.sleepycat.date/v2/client/players', params=payload) as r: