Skip to content

Commit f876671

Browse files
fix
1 parent 2976d83 commit f876671

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dsc/db/item.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ def create(
8080
) from exception
8181

8282
def to_dict(self, attributes: list[str] | None = None) -> dict:
83-
return {key: value for key, value in self.attribute_values if key in attributes}
83+
return {
84+
key: value
85+
for key, value in self.attribute_values.items()
86+
if key in attributes
87+
}

0 commit comments

Comments
 (0)