From 8831e8e70d7c7af1645c2d50bfbcab623925ae58 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 13 Feb 2023 15:20:21 +0100 Subject: chg: [commands] Removed command fix_article_entry_id. --- newspipe/commands.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/newspipe/commands.py b/newspipe/commands.py index 2d6aae5e..a6f91027 100755 --- a/newspipe/commands.py +++ b/newspipe/commands.py @@ -119,19 +119,6 @@ def delete_read_articles(): print("Read articles deleted.") -@application.cli.command("fix_article_entry_id") -def fix_article_entry_id(): - filter = {} - filter["entry_id"] = None - articles = ArticleController().read(**filter).limit(50) - for article in articles: - try: - article.entry_id = str(article.id) - db.session.commit() - except Exception: - db.session.rollback() - - @application.cli.command("fetch_asyncio") @click.option("--user-id", default=None, help="Id of the user") @click.option("--feed-id", default=None, help="If of the feed") -- cgit