Skip to content

Commit

Permalink
Update csv_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tkb-github authored Jul 3, 2024
1 parent f913cb0 commit 1239ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csv_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def sort_lat(file="latin.csv", column="Ref."):
# fieldnames are the first row of the csv file so don't need to be provided
sorted_conj = sorted(conjj, key=lambda row: human_sort_dict(row, column)) # old key=lambda row: row[column]
try:
with open(file, "w", encoding="utf8", newline="") as conj_csv:
with open(file, "w", encoding="utf8", newline="\n") as conj_csv:
writer = csv.DictWriter(conj_csv, fieldnames)
writer.writeheader()
writer.writerows(sorted_conj)
Expand Down

0 comments on commit 1239ed0

Please sign in to comment.