We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df1ccb commit 2aed821Copy full SHA for 2aed821
utils.py
@@ -26,7 +26,7 @@ def log_title(title: str, title_len: int = TITLE_LEN):
26
27
@staticmethod
28
def log_to_csv(csv_name: str, field_names: tuple[str], row: dict | None = None):
29
- fields_name = list(map(lambda x: x.replace('_', '')))
+ field_names = list(map(lambda x: x.replace('_', '', field_names)))
30
if isinstance(row, dict):
31
with open(csv_name, 'a', encoding='utf-8', newline='') as file:
32
writer = csv.DictWriter(file, fieldnames=field_names)
0 commit comments