This commit is contained in:
WorldTeacher
2024-06-28 10:14:07 +02:00
parent 1b14d09bf0
commit 6fa3e18f22
10 changed files with 109 additions and 66 deletions

View File

@@ -7,3 +7,4 @@ from .dataclass import ApparatData, BookData
from .csvparser import csv_to_list
from .wordparser import elsa_word_to_csv, word_docx_to_csv
from .log import MyLogger
from .zotero import ZoteroController

View File

@@ -7,7 +7,8 @@ def csv_to_list(path: str) -> list[str]:
"""
Extracts the data from a csv file and returns it as a pandas dataframe
"""
with open(path, newline="") as csvfile:
with open(path, newline="", encoding="utf-8") as csvfile:
# if decoder fails to map, assign ""
reader = csv.reader(csvfile, delimiter=";", quotechar="|")
ret = []
for row in reader: