Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetan-cogliati committed May 16, 2024
1 parent 898921d commit 5736715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def flatten_list(lst):
desired_output = json_description['desired_output']
if isinstance(result_data.json(), list):
flat_list = flatten_list(result_data.json())
# If several objects contain the desired output, append them all to one string.
# If several objects contain the desired output, return all the objects with that field only.
output_list = [{desired_output: data[desired_output]} for data in flat_list if desired_output
in data]
output = json.dumps(output_list, indent=4)
Expand Down

0 comments on commit 5736715

Please sign in to comment.