lesscode
This commit is contained in:
parent
3e188a54c3
commit
b28f514340
|
@ -264,14 +264,8 @@ async def handling_migration():
|
||||||
|
|
||||||
|
|
||||||
def process():
|
def process():
|
||||||
if "migrate" in sys.argv:
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.run_until_complete(handling_migration())
|
loop.run_until_complete(handling_migration())
|
||||||
elif "bson" in sys.argv:
|
|
||||||
import bson2json
|
|
||||||
bson2json.json_tables()
|
|
||||||
else:
|
|
||||||
print("[migration] usage: python server.py migrate")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user