dont await those either

This commit is contained in:
SowinskiBraeden committed 2024-11-17 15:26:39 -08:00
1 parent 6f17c4ad88
commit 1da98b6012
1 file changed
+3 -3
+3 -3
View File
@@ -85,10 +85,10 @@ class ReforgerStats(commands.Bot):
if self.log_dir == "": self.log_dir = getLatestDir(self.sftp, remote_path) if self.log_dir == "": self.log_dir = getLatestDir(self.sftp, remote_path)
# Read data # Read data
file: SFTPFile = await self.sftp.open(f"{remote_path}/{self.log_dir}/console.log") file: SFTPFile = self.sftp.open(f"{remote_path}/{self.log_dir}/console.log")
lines: list[str] = await file.readlines() lines: list[str] = file.readlines()
if self.log_index == -1: self.log_index = len(lines) - 1 if self.log_index == -1: self.log_index = len(lines) - 1
self.players, self.gamertags = await readLogFromIndex(self.log_index, lines, self.players, self.gamertags) self.players, self.gamertags = readLogFromIndex(self.log_index, lines, self.players, self.gamertags)
self.log_index = len(lines) - 1 self.log_index = len(lines) - 1
file.close() file.close()