mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
remove temporary cli function
This commit is contained in:
parent
c91131424d
commit
92affc3064
1 changed files with 0 additions and 8 deletions
|
@ -274,14 +274,6 @@ def register(app):
|
||||||
if filesize > 0 and num_content > 0:
|
if filesize > 0 and num_content > 0:
|
||||||
print(f'{user.id},"{user.ap_id}",{filesize},{num_content}')
|
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):
|
def list_files(directory):
|
||||||
for root, dirs, files in os.walk(directory):
|
for root, dirs, files in os.walk(directory):
|
||||||
for file in files:
|
for file in files:
|
||||||
|
|
Loading…
Add table
Reference in a new issue