✏ 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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)

View File

@ -81,7 +81,7 @@ expected_calls = [
],
[
"Spider-Boy's team:",
{"headquarters": "Wakaland Capital City", "id": 3, "name": "Wakaland"},
{"headquarters": "Sharp Tower", "id": 2, "name": "Preventers"},
],
[
"Spider-Boy's team again:",