From 2c5f8335d687b957b8d61743d95a2a4341c85623 Mon Sep 17 00:00:00 2001 From: knst-kotov Date: Tue, 16 Nov 2021 15:38:40 +0300 Subject: [PATCH] migrate: add command for comments --- migrate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrate.py b/migrate.py index f8e78403..3e15f5b2 100644 --- a/migrate.py +++ b/migrate.py @@ -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":