Merge pull request #574 from DarthLorenzo/master
Fixed DynamoDB 'IN' comparison function
This commit is contained in:
commit
9eb410e827
@ -12,7 +12,7 @@ COMPARISON_FUNCS = {
|
||||
'CONTAINS': lambda item_value, test_value: test_value in item_value,
|
||||
'NOT_CONTAINS': lambda item_value, test_value: test_value not in item_value,
|
||||
'BEGINS_WITH': lambda item_value, test_value: item_value.startswith(test_value),
|
||||
'IN': lambda item_value, test_value: item_value in test_value,
|
||||
'IN': lambda item_value, *test_values: item_value in test_values,
|
||||
'BETWEEN': lambda item_value, lower_test_value, upper_test_value: lower_test_value <= item_value <= upper_test_value,
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ COMPARISON_FUNCS = {
|
||||
'CONTAINS': lambda item_value, test_value: test_value in item_value,
|
||||
'NOT_CONTAINS': lambda item_value, test_value: test_value not in item_value,
|
||||
'BEGINS_WITH': lambda item_value, test_value: item_value.startswith(test_value),
|
||||
'IN': lambda item_value, test_value: item_value in test_value,
|
||||
'IN': lambda item_value, *test_values: item_value in test_values,
|
||||
'BETWEEN': lambda item_value, lower_test_value, upper_test_value: lower_test_value <= item_value <= upper_test_value,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user