Skip to content

Commit

Permalink
Remove unwanted transform for None value to 'null' (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpayet authored Jun 11, 2020
1 parent d9ec3b4 commit df07723
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scraper/src/meilisearch_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ def remove_bad_encoding(value):
return value.replace(''', "'")

def clean_one_field(value):
if value is None:
return 'null'
elif isinstance(value, bool):
if isinstance(value, bool):
return str(value)
elif isinstance(value, str):
return remove_bad_encoding(value)
Expand Down

0 comments on commit df07723

Please sign in to comment.