aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2023-02-13 15:20:21 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2023-02-13 15:20:21 +0100
commit8831e8e70d7c7af1645c2d50bfbcab623925ae58 (patch)
tree90572007b409de05bf934558cdd24c960ee6821f
parentchg: [dependencies] Updated Python dependencies. (diff)
downloadnewspipe-8831e8e70d7c7af1645c2d50bfbcab623925ae58.tar.gz
newspipe-8831e8e70d7c7af1645c2d50bfbcab623925ae58.tar.bz2
newspipe-8831e8e70d7c7af1645c2d50bfbcab623925ae58.zip
chg: [commands] Removed command fix_article_entry_id.
-rwxr-xr-xnewspipe/commands.py13
1 files changed, 0 insertions, 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")
bgstack15