Skip to content

Commit

Permalink
Fix serialization problem with sources filed in csv validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Dec 18, 2023
1 parent 7981999 commit 43a2385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/sound_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ def validate_input_csv_file(csv_header, csv_lines, sounds_base_dir, username=Non
'audio_filename': audio_filename,
'license': license_name, # Overwrite license with license name as License is not JSON serializable
'tags': list(line_cleaned.get('tags', [])), # Convert tags to List as Set is not JSON serializable
'sources': list(line_cleaned.get('sources', [])), # Convert sources to List as Set is not JSON serializable
})

lines_validated.append({
Expand Down

0 comments on commit 43a2385

Please sign in to comment.