From 2ea1ffa1d1157a57e585550bb8dc4467b81969f3 Mon Sep 17 00:00:00 2001 From: David Wu Date: Sat, 9 Dec 2023 02:00:29 -0500 Subject: [PATCH] Fix typo for summarize sgfs --- python/summarize_sgfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/summarize_sgfs.py b/python/summarize_sgfs.py index 73c516124..29a9bc063 100644 --- a/python/summarize_sgfs.py +++ b/python/summarize_sgfs.py @@ -41,7 +41,7 @@ def get_game_records(self, input_file: str) -> List[GameRecord]: records.append(self.sgf_string_to_game_record(sgf, input_file)) return records else: - with open(sgf_file_name, "rb") as f: + with open(input_file, "rb") as f: sgf = f.read() return [self.sgf_string_to_game_record(sgf, input_file)]