From ad70ba0ef5f7861ae0e750a0018f5a6b05922a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 16 Jul 2024 20:44:01 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Rename=20variable=20in=20example?= =?UTF-8?q?=20for=20Python=203.7+=20for=20consistency=20with=203.10+=20(I?= =?UTF-8?q?=20missed=20that=20change=20before)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_src/advanced/uuid/tutorial001.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs_src/advanced/uuid/tutorial001.py b/docs_src/advanced/uuid/tutorial001.py index 1fc788ec93..cfd3146b41 100644 --- a/docs_src/advanced/uuid/tutorial001.py +++ b/docs_src/advanced/uuid/tutorial001.py @@ -23,16 +23,16 @@ def create_db_and_tables(): def create_hero(): with Session(engine) as session: - hero_1 = Hero(name="Deadpond", secret_name="Dive Wilson") + hero = Hero(name="Deadpond", secret_name="Dive Wilson") print("The hero before saving in the DB") - print(hero_1) + print(hero) print("The hero ID was already set") - print(hero_1.id) - session.add(hero_1) + print(hero.id) + session.add(hero) session.commit() - session.refresh(hero_1) + session.refresh(hero) print("After saving in the DB") - print(hero_1) + print(hero) def select_hero():