remove temporary cli function

This commit is contained in:
rimu 2024-05-29 15:36:41 +12:00
parent c91131424d
commit 92affc3064

View file

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