Skip to content

Commit

Permalink
Fix JSON serialization in lambda_handler function
Browse files Browse the repository at this point in the history
  • Loading branch information
FloRul committed Feb 3, 2024
1 parent fc4cc8c commit e47261f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list_collections/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def lambda_handler(event, context):

# Format the slots as a map of slot names to slot objects
slots = {
f"option{i}": {"shape": "Scalar", "value": json.dumps(option)}
f"option{i}": {"shape": "Scalar", "value": option}
for i, option in enumerate(rows)
}

Expand Down

0 comments on commit e47261f

Please sign in to comment.