Skip to content

Commit 2aed821

Browse files
fix tests
1 parent 8df1ccb commit 2aed821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def log_title(title: str, title_len: int = TITLE_LEN):
2626

2727
@staticmethod
2828
def log_to_csv(csv_name: str, field_names: tuple[str], row: dict | None = None):
29-
fields_name = list(map(lambda x: x.replace('_', '')))
29+
field_names = list(map(lambda x: x.replace('_', '', field_names)))
3030
if isinstance(row, dict):
3131
with open(csv_name, 'a', encoding='utf-8', newline='') as file:
3232
writer = csv.DictWriter(file, fieldnames=field_names)

0 commit comments

Comments
 (0)