Skip to content

Commit

Permalink
Revert unneeded code change
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkZH committed Apr 22, 2024
1 parent f0baba7 commit f840f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/pgn.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def emt(self) -> Optional[float]:
Returns the player's elapsed move time use for the comment of this
move, in seconds.
"""
match = EMT_REGEX.search(" ".join(self.comments))
match = EMT_REGEX.search(self.comment)
if match is None:
return None
return int(match.group("hours")) * 3600 + int(match.group("minutes")) * 60 + float(match.group("seconds"))
Expand Down

0 comments on commit f840f8e

Please sign in to comment.