fix index undefined

This commit is contained in:
SowinskiBraeden committed 2024-11-17 19:31:00 -08:00
1 parent 79e5ba799b
commit 9ff1132eac
1 file changed
+1 -1
+1 -1
View File
@@ -16,8 +16,8 @@ class Templates:
# Get initial players data # Get initial players data
def getPlayers(bot: commands.Bot, logs: list[str]) -> None: def getPlayers(bot: commands.Bot, logs: list[str]) -> None:
gt_data = match(Templates.Gamertag, logs[i])
for i in range(0, len(logs)): for i in range(0, len(logs)):
gt_data = match(Templates.Gamertag, logs[i])
# Generate new player data or update connections/IP info # Generate new player data or update connections/IP info
if gt_data is not None: if gt_data is not None:
ip_data = match(Templates.IpAddress, logs[i+1]) ip_data = match(Templates.IpAddress, logs[i+1])