Skip to content

Commit 90af252

Browse files
committed
Improve formatting in documentation and keyset pagination code
1 parent 711398d commit 90af252

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/flask_config.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ errors. Please switch to recommended method before posting any issue. Thank you.
2121

2222
## MongoDB Version Compatibility
2323

24-
As of version X.X.X, Flask-MongoEngine is tested and compatible with MongoDB versions 5.x, 6.x, 7.x, and 8.x. Please ensure your MongoDB server is one of these supported versions for best results.
24+
As of version X.X.X,
25+
Flask-MongoEngine is tested and compatible with MongoDB versions 5.x, 6.x, 7.x, and 8.x.
26+
Please ensure your MongoDB server is one of these supported versions for best results.
2527

2628
## Recommended: List of dictionaries settings
2729

@@ -145,7 +147,8 @@ parent package versions change.
145147
Database name from URI has priority over name. (MongoEngine behavior).
146148
```
147149

148-
If the URI is present and doesn't contain a database name, the db setting is entirely ignored and the db name is set to ``test``:
150+
If the URI is present and doesn't contain a database name,
151+
the db setting is entirely ignored and the db name is set to ``test``:
149152

150153
```python
151154
import flask

flask_mongoengine/pagination/keyset_pagination.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ def get_page(
5353
self.total = iterable.count()
5454
if self.page:
5555
self.items = self.iterable.filter(
56-
**{f"{field_filter_by}__{op}": last_field_value}
57-
).order_by(order_by)
58-
56+
**{f"{field_filter_by}__{op}": last_field_value}
57+
).order_by(order_by)
5958

6059
else:
6160
self.items = self.iterable.order_by(f"{field_filter_by}")

0 commit comments

Comments
 (0)