Skip to content

Commit

Permalink
Update car make before adding to db
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed May 19, 2024
1 parent ab21b6a commit e775ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async def update(
with open(destination_path, "r", encoding="utf-8") as csv_file:
csv_reader = csv.DictReader(csv_file)
for row in csv_reader:
row["make"] = row["make"].replace(".", "")
csv_data.append(row)

existing_data = collection.find({})
Expand Down

0 comments on commit e775ac4

Please sign in to comment.