fix class func missing self
This commit is contained in:
1 file changed
+2
-2
@@ -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()
|
||||
Reference in new issue
Block a user