Skip to content

Commit

Permalink
Update index.qmd
Browse files Browse the repository at this point in the history
  • Loading branch information
awellis committed Nov 28, 2024
1 parent 10a7b38 commit 2a908d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/anki/example/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ for card in romantic_deck.cards:
os.makedirs('assets/flashcards', exist_ok=True)
# Export flashcards to CSV file
with open('assets/flashcards/romantic-flashcards.csv', 'w', newline='') as csvfile:
with open('assets/flashcards/romantic-flashcards.csv',
'w',
newline='',
encoding='utf-8') as csvfile:
writer = csv.writer(csvfile)
# Write header row
writer.writerow(['Question', 'Answer', 'Tags'])
Expand Down

0 comments on commit 2a908d1

Please sign in to comment.