fix class func missing self

This commit is contained in:
SowinskiBraeden committed 2024-11-17 15:10:53 -08:00
1 parent 28b6ab5f59
commit 2d36516b4f
1 file changed
+2 -2
+2 -2
View File
@@ -48,7 +48,7 @@ class ReforgerStats(commands.Bot):
exception = f"{type(e).__name__}: {e}"
print(exception)
async def createLeaderboardEmbed(players: list[dict]) -> dict:
async def createLeaderboardEmbed(self, players: list[dict]) -> dict:
sorted_players = sorted(players, key=lambda a: a["kills"], reverse=True)
description = ""
rank = 1
@@ -99,4 +99,4 @@ class ReforgerStats(commands.Bot):
# Close SSH && SFTP sessions and file
self.sftp.close()
self.ssh.close()
self.ssh.close()