Skip to content

Commit

Permalink
fix attribute type filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ojii committed Jan 9, 2024
1 parent 6d4637d commit 821255f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiodynamo/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class AttributeTypeCondition(Condition):
attribute_type: AttributeType

def encode(self, params: Parameters) -> str:
return f"attribute_type({params.encode_path(self.field.path)}, {self.attribute_type.value})"
return f"attribute_type({params.encode_path(self.field.path)}, {params.encode_value(self.attribute_type.value)})"


@dataclass(frozen=True)
Expand Down

0 comments on commit 821255f

Please sign in to comment.