fix attribute error from failing to unpack tuple
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
This commit is contained in:
parent
fee723b9a9
commit
ba16063eff
@ -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"
|
||||
|
Reference in New Issue
Block a user