📝 Minor corrections in `docs/en/docs/tutorial/sql-databases.md` (#13081)

This commit is contained in:
alv2017 2024-12-25 22:10:12 +02:00 committed by GitHub
parent 0370958171
commit b7367f2564
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -125,8 +125,6 @@ The same way, you can declare it as the function's **return type**, and then the
{* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[40:45] hl[40:45] *}
</details>
Here we use the `SessionDep` dependency (a `Session`) to add the new `Hero` to the `Session` instance, commit the changes to the database, refresh the data in the `hero`, and then return it.
### Read Heroes
@ -235,7 +233,6 @@ All the fields in `HeroPublic` are the same as in `HeroBase`, with `id` declared
* `id`
* `name`
* `age`
* `secret_name`
{* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[7:18] hl[17:18] *}