Skip to content

Commit df07723

Browse files
authored
Remove unwanted transform for None value to 'null' (#30)
1 parent d9ec3b4 commit df07723

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scraper/src/meilisearch_helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ def remove_bad_encoding(value):
88
return value.replace(''', "'")
99

1010
def clean_one_field(value):
11-
if value is None:
12-
return 'null'
13-
elif isinstance(value, bool):
11+
if isinstance(value, bool):
1412
return str(value)
1513
elif isinstance(value, str):
1614
return remove_bad_encoding(value)

0 commit comments

Comments
 (0)