Add spreadsheet

This commit is contained in:
Samuel Lazareanu
2023-06-05 10:45:33 +03:00
parent c03d7765b3
commit 31ad3921e6
2 changed files with 20 additions and 0 deletions

View File

@@ -169,3 +169,10 @@ def fix_text_syntax(font: str, text_file):
# close the file
write_file.close()
def add_sheets(file_names: str, output_path: str, customer_name: str, authors: str, quotes: str):
with open(f'{output_path}/{customer_name}.csv', 'w', newline='') as file:
writer = csv.writer(file)
writer.writerow(["File Name", "Reference", "Verse"])
for i in range(len(file_names)):
writer.writerow([file_names[i], authors[i], quotes[i]])