From 6268e3f2c721286a9f475734bca4de195592baed Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sat, 24 Dec 2022 10:34:03 +0300 Subject: [PATCH] fix-bson --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 191aad64..28b1150e 100644 --- a/server.py +++ b/server.py @@ -93,6 +93,11 @@ if __name__ == "__main__": print("MODE: MIGRATE") migrate() + elif x == "bson": + from migration.bson2json import json_tables + print("MODE: BSON") + + json_tables() else: sys.excepthook = exception_handler uvicorn.run(