fix-migration-call

This commit is contained in:
2022-12-25 08:45:13 +03:00
parent 6268e3f2c7
commit 3e188a54c3
2 changed files with 9 additions and 5 deletions

View File

@@ -89,10 +89,10 @@ if __name__ == "__main__":
reload=want_reload
) # , ssl_keyfile="discours.key", ssl_certfile="discours.crt")
elif x == "migrate":
from migration import migrate
from migration import process
print("MODE: MIGRATE")
migrate()
process()
elif x == "bson":
from migration.bson2json import json_tables
print("MODE: BSON")