Skip to content

Commit d69c7f9

Browse files
authored
Improve the example in README.md (#1349)
1 parent 14144b5 commit d69c7f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ easier to accomplish common tasks.
88
[Flask]: https://flask.palletsprojects.com
99
[SQLAlchemy]: https://www.sqlalchemy.org
1010

11-
1211
## Pallets Community Ecosystem
1312

1413
> [!IMPORTANT]\
@@ -19,7 +18,6 @@ easier to accomplish common tasks.
1918
>
2019
> [discord]: https://discord.gg/pallets
2120
22-
2321
## A Simple Example
2422

2523
```python
@@ -45,5 +43,5 @@ with app.app_context():
4543
db.session.add(User(username="example"))
4644
db.session.commit()
4745

48-
users = db.session.execute(db.select(User)).scalars()
46+
users = db.session.scalars(db.select(User))
4947
```

0 commit comments

Comments
 (0)