This commit is contained in:
tonyrewin 2022-12-14 10:23:08 +03:00
parent cbbe263552
commit 3e282bb354

View File

@ -333,12 +333,12 @@ async def handle_comments():
async def main(): async def main():
if len(sys.argv) > 1: if "migrate" in sys.argv:
init_tables() init_tables()
if len(sys.argv) == 2: if "comments" in sys.argv:
await handle_auto()
elif "comments" in sys.argv:
await handle_comments() await handle_comments()
else:
await handle_auto()
else: else:
print("[migration] usage: python server.py migrate") print("[migration] usage: python server.py migrate")