migrate: add command for comments

This commit is contained in:
knst-kotov 2021-11-16 15:38:40 +03:00
parent 03f89c050f
commit 2c5f8335d6

View File

@ -326,6 +326,9 @@ if __name__ == '__main__':
'createdAt': date_parse(OLD_DATE)
})
shouts(content_data, shouts_by_slug, shouts_by_oid) # NOTE: listens limit
elif cmd == "comments":
for comment in comments_data:
migrateComment(comment)
elif cmd == "export_shouts":
export_shouts(shouts_by_slug, export_articles, export_authors, content_dict)
elif cmd == "all":