Skip to content

Commit c1f0729

Browse files
committed
fixups
1 parent bc540e3 commit c1f0729

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defaults:
1414
shell: bash -eux {0}
1515

1616
env:
17-
MONGODB_VERSION: 8.0
17+
MONGODB_VERSION: 7.0
1818

1919
jobs:
2020
build:

flask_pymongo/helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
from bson import json_util, SON
3030
from bson.errors import InvalidId
3131
from bson.objectid import ObjectId
32-
from flask import abort, json as flask_json
32+
from flask import abort
33+
from json import JSONEncoder
3334
from six import iteritems, string_types
3435
from werkzeug.routing import BaseConverter
3536
import pymongo
@@ -83,7 +84,7 @@ def to_url(self, value):
8384
return str(value)
8485

8586

86-
class JSONEncoder(flask_json.JSONEncoder):
87+
class JSONEncoder(JSONEncoder):
8788

8889
"""A JSON encoder that uses :mod:`bson.json_util` for MongoDB documents.
8990

0 commit comments

Comments
 (0)