fix use of _get_default result on _get_appended_list

This commit is contained in:
Heyder 2020-03-04 23:17:03 -03:00 committed by GitHub
parent f8af496445
commit bc1c9a27f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -450,9 +450,7 @@ class Item(BaseModel):
old_list_key = list_append_re.group(1)
# old_key could be a function itself (if_not_exists)
if old_list_key.startswith("if_not_exists"):
old_list = DynamoType(
expression_attribute_values[self._get_default(old_list_key)]
)
old_list = DynamoType(self._get_default(old_list_key))
else:
old_list = self.attrs[old_list_key.split(".")[0]]
if "." in old_list_key: