fix attribute error from failing to unpack tuple
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-12-09 01:49:58 +00:00
parent fee723b9a9
commit ba16063eff

View File

@ -88,7 +88,7 @@ class PlayersCog(commands.Cog):
log.warning("Failed to parse player data: %s", line)
return
player = await Player.get_or_create(username=re_match.group("username"))
player, created = await Player.get_or_create(username=re_match.group("username"))
player.last_connection = datetime.strptime(
re_match.group("timestamp"),
"%m-%d-%y %H:%M:%S.%f"
@ -114,7 +114,7 @@ class PlayersCog(commands.Cog):
log.warning("Failed to parse player data: %s", line)
return
player = await Player.get_or_create(username=re_match.group("username"))
player, created = await Player.get_or_create(username=re_match.group("username"))
player.last_disconnection = datetime.strptime(
re_match.group("timestamp"),
"%m-%d-%y %H:%M:%S.%f"