Im struggling with the syntax for updating an item in DynamoDb with python. I get the error that its expecting a dict and not a string.
The type is string as it can either be a dash or a number.
results_table.update_item(
Key={'Date': next_wednesday, 'Team A Result?': '-'},
AttributeUpdates={
'Team A Result?': values[0],
'Team B Result?': values[1]}
)
Invalid type for parameter AttributeUpdates.Team A Result?, value: 30, type: <class 'str'>, valid types: <class 'dict'>
Invalid type for parameter AttributeUpdates.Team B Result?, value: 21, type: <class 'str'>, valid types: <class 'dict'>