From 667a19527005933db362b180d881810d9cb20af3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 2 Jul 2022 11:52:18 +0200 Subject: [PATCH] migrating --- files/routes/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 19ff395b2..5271f778b 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -56,6 +56,7 @@ def give_monthly_marseybux_task(): def migrate_polls(v): polls = g.db.query(Comment).filter_by(author_id=6176).all() for c in polls: + if len(c.body_html) > 500: continue print(c.id, flush=True) option = CommentOption( comment_id=c.parent_comment_id, @@ -80,6 +81,7 @@ def migrate_polls(v): print('first done', flush=True) polls = g.db.query(Comment).filter_by(author_id=9167).all() for c in polls: + if len(c.body_html) > 500: continue print(c.id, flush=True) option = CommentOption( comment_id=c.parent_comment_id,