✏ Fix broken variable/typo in docs for Read Relationships, hero_spider_boy.id => hero_spider_boy.team_id (#106)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Yoann Mosteiro
2022-08-28 00:06:56 +02:00
committed by GitHub
parent ae1b8b5585
commit ee576ab279
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ def select_heroes():
result = session.exec(statement)
hero_spider_boy = result.one()
statement = select(Team).where(Team.id == hero_spider_boy.id)
statement = select(Team).where(Team.id == hero_spider_boy.team_id)
result = session.exec(statement)
team = result.first()
print("Spider-Boy's team:", team)