Skip to content

Commit

Permalink
Merge pull request #28 from ministryofjustice/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
jamesgreen-moj authored Jun 3, 2024
2 parents 6b2f5c8 + f2acfc3 commit 67b3d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RF_TEMPLATE_ID=
NETWORK_TEMPLATE_ID=
AP_VERSIONS={"AP45": "0.12.27139", "AP32": "0.12.27139"}
OPERATION=site_creation OR ap_staging
CSV_FILE_NAME=NAME_OF_CSV_FILE.csv

; Optional config options
;MIST_USERNAME=
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Convert CSV file to JSON object.
def convert_csv_to_json(file_path):
csv_rows = []
with open(file_path) as csvfile:
with open(file_path, encoding="ISO-8859-1") as csvfile:
reader = csv.DictReader(csvfile, skipinitialspace=True, quotechar='"')

# Here we clean any Non-breaking spaces and convert to normal spacing. \xa0 converts to ' '
Expand Down

0 comments on commit 67b3d3b

Please sign in to comment.