forked from rDrama/rDrama
1
0
Fork 0

migrating

master
Aevann1 2022-07-02 11:52:18 +02:00
parent 5b8b53e312
commit 667a195270
1 changed files with 2 additions and 0 deletions

View File

@ -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,