From 92affc306414fc7506b5d7fe0f8ebf815ab3dbcf Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 29 May 2024 15:36:41 +1200 Subject: [PATCH] remove temporary cli function --- app/cli.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/cli.py b/app/cli.py index 7ad000d9..3fd92c79 100644 --- a/app/cli.py +++ b/app/cli.py @@ -274,14 +274,6 @@ def register(app): if filesize > 0 and num_content > 0: print(f'{user.id},"{user.ap_id}",{filesize},{num_content}') - @app.cli.command("repair-search") - def repair_search(): - with app.app_context(): - for post in Post.query.filter(Post.body == '', Post.body_html != ''): - post.body = html_to_text(post.body_html) - db.session.commit() - print('Done') - def list_files(directory): for root, dirs, files in os.walk(directory): for file in files: