You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to do an update_item with the following parameters
model.update_item("status", "delivered", status__in=['queued', 'sending', 'sent'])
The model's current status is 'queued'. So this should work. However, I get a UpdateError. When I look at the logs, this is what the AWS json is generating.
Shouldn't the AttirbuteValueList have all three items in it? It seems to be only putting the last item in the list.
The text was updated successfully, but these errors were encountered:
lita
changed the title
When using "IN" Conditional Write Operator, it doesn't handle multiple items in a list
On update_item when using "IN" Conditional Write Operator, AttributeValueList gets only the last item of the list.
Mar 4, 2016
I am trying to do an update_item with the following parameters
model.update_item("status", "delivered", status__in=['queued', 'sending', 'sent'])
The model's current status is 'queued'. So this should work. However, I get a UpdateError. When I look at the logs, this is what the AWS json is generating.
{'status': {'ComparisonOperator': 'IN', 'AttributeValueList': [{'S': u'sent'}]}}
Shouldn't the AttirbuteValueList have all three items in it? It seems to be only putting the last item in the list.
The text was updated successfully, but these errors were encountered: