From 6c8814e885949a8a2165e9e2673450db7b2c26fa Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sun, 20 Aug 2023 15:18:36 +0500 Subject: [PATCH] Update main.py --- api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/main.py b/api/main.py index 6815984..152c9c5 100644 --- a/api/main.py +++ b/api/main.py @@ -26,7 +26,7 @@ app.include_router(core.router) async def startup_event(): # DATABASE FIX https://stackoverflow.com/questions/65970988/python-mongodb-motor-objectid-object-is-not-iterable-error-while-trying-to-f import pydantic, bson - pydantic.json.ENCODERS_BY_TYPE[bson.objectid.ObjectId]=str + # pydantic.json.ENCODERS_BY_TYPE[bson.objectid.ObjectId]=str @app.get('/') async def root():