Skip to content

Commit 0ceaf48

Browse files
Pre-Commit Changes
1 parent 265c870 commit 0ceaf48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/strawberry_sqlalchemy_mapper/mapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,9 @@ async def resolve(self, info: Info):
405405
relationship_key = tuple(
406406
[
407407
[
408-
x.value
409-
for x in instance_state.attrs.values()
410-
if x.key == local.key
408+
v.value
409+
for k, v in instance_state.attrs.items()
410+
if instance_state.attrs[k].key == local.key
411411
][0]
412412
for local, _ in relationship.local_remote_pairs
413413
]

0 commit comments

Comments
 (0)