Skip to content

Commit c34bb27

Browse files
Further Tweaks..
1 parent 0ceaf48 commit c34bb27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/strawberry_sqlalchemy_mapper/mapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ async def resolve(self, info: Info):
406406
[
407407
[
408408
v.value
409-
for k, v in instance_state.attrs.items()
410-
if instance_state.attrs[k].key == local.key
409+
for v in instance_state.attrs.values()
410+
if local in v.columns
411411
][0]
412412
for local, _ in relationship.local_remote_pairs
413413
]

0 commit comments

Comments
 (0)